1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00
croc/Dockerfile

17 lines
326 B
Docker
Raw Normal View History

2022-12-02 08:45:10 +03:00
FROM golang:1.19-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"]