Compare commits

...

2 Commits
main ... docker

Author SHA1 Message Date
Zack Scholl 979e72b726 add docker info 2019-07-04 19:19:53 -06:00
Zack Scholl 89ce8648d1 docker file works 2019-07-04 19:19:07 -06:00
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