1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-28 09:35:14 +03:00
croc/Dockerfile

16 lines
315 B
Docker
Raw Normal View History

2020-09-03 23:34:10 +03:00
FROM golang:1.15-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 /
ENTRYPOINT ["/croc-entrypoint.sh"]
CMD ["relay"]