mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
docker file works
This commit is contained in:
parent
ba00eda176
commit
89ce8648d1
1 changed files with 15 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
FROM golang:1.12-alpine as builder
|
||||||
|
RUN apk add --no-cache git
|
||||||
|
WORKDIR /go/croc
|
||||||
|
COPY . .
|
||||||
|
RUN go build -v
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
EXPOSE 9009
|
||||||
|
EXPOSE 9010
|
||||||
|
EXPOSE 9011
|
||||||
|
EXPOSE 9012
|
||||||
|
EXPOSE 9013
|
||||||
|
COPY --from=builder /go/croc/croc /croc
|
||||||
|
ENTRYPOINT ["/croc"]
|
||||||
|
CMD ["relay"]
|
Loading…
Add table
Add a link
Reference in a new issue