Update Dockerfile

This commit is contained in:
Teddysun 2019-11-01 22:09:19 +09:00
parent f79dc2352f
commit 6c8b53a715
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -5,13 +5,13 @@
FROM golang:alpine as builder
RUN set -ex && apk add --update git \
&& go get github.com/txthinking/brook/cli/brook
&& go get -u -v github.com/txthinking/brook/cli/brook
FROM alpine:latest
LABEL maintainer="Teddysun <i@teddysun.com>"
COPY --from=builder /go/bin /usr/bin
COPY --from=builder /go/bin/brook /usr/bin
ENV ARGS="server -l :9000 -p password0"
CMD /usr/bin/brook $ARGS
CMD brook $ARGS