1
0
mirror of https://github.com/schollz/croc.git synced 2024-12-02 23:22:23 +03:00
croc/Dockerfile

17 lines
327 B
Docker
Raw Normal View History

2021-04-18 06:40:56 +03:00
FROM golang:1.16-alpine as builder
RUN apk add --no-cache git
WORKDIR /go/croc
COPY . .
2021-01-27 21:30:45 +03:00
RUN go build -v -ldflags="-s -w"
FROM alpine:latest
EXPOSE 9009
EXPOSE 9010
EXPOSE 9011
EXPOSE 9012
EXPOSE 9013
2019-12-06 16:49:45 +03:00
COPY --from=builder /go/croc/croc /go/croc/croc-entrypoint.sh /
USER nobody
2019-12-06 16:49:45 +03:00
ENTRYPOINT ["/croc-entrypoint.sh"]
CMD ["relay"]