across/docker/brook/Dockerfile
2019-10-30 22:28:44 +09:00

18 lines
426 B
Docker

# Dockerfile for Brook based alpine
# Copyright (C) 2019 Teddysun <i@teddysun.com>
# Reference URL:
# https://github.com/txthinking/brook
FROM golang:alpine as builder
RUN set -ex && apk add --update git \
&& go get github.com/txthinking/brook/cli/brook
FROM alpine:latest
LABEL maintainer="Teddysun <i@teddysun.com>"
COPY --from=builder /go/bin /usr/bin
ENV ARGS="server -l :9000 -p password0"
CMD /usr/bin/brook $ARGS