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

17 lines
339 B
Docker
Raw Normal View History

2024-02-07 02:51:07 +03:00
FROM golang:1.22-alpine as builder
RUN apk add --no-cache git gcc musl-dev
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"]