* docker file works

* add docker info
This commit is contained in:
Zack 2019-07-04 18:20:25 -07:00 committed by GitHub
parent ba00eda176
commit 6d9105abfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

15
Dockerfile Normal file
View 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"]

View File

@ -118,6 +118,12 @@ You can send files using your relay by entering `--relay` to change the relay th
$ croc --relay "myrelay.example.com:9009" send [filename]
```
If it's easier you can also run a relay with Docker:
```
$ docker run -d -p 9009:9009 -p 9010:9010 -p 9011:9011 -p 9012:9012 -p 9013:9013 schollz/croc
```
## License