across/docker/brook/Dockerfile

18 lines
429 B
Docker
Raw Normal View History

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