across/docker/brook/Dockerfile.architecture

22 lines
524 B
Docker
Raw Normal View History

# Dockerfile for Brook based alpine
# Copyright (C) 2019 - 2020 Teddysun <i@teddysun.com>
# Reference URL:
# https://github.com/txthinking/brook
2020-02-19 21:39:43 +09:00
FROM --platform=${TARGETPLATFORM} alpine:latest
LABEL maintainer="Teddysun <i@teddysun.com>"
2020-02-19 21:39:43 +09:00
ARG TARGETPLATFORM
WORKDIR /root
COPY brook.sh /root/brook.sh
RUN set -ex \
&& apk add --no-cache tzdata \
&& chmod +x /root/brook.sh \
&& /root/brook.sh "${TARGETPLATFORM}" \
&& rm -fv /root/brook.sh
2020-02-19 21:39:43 +09:00
ENV TZ=Asia/Shanghai
ENV ARGS="server -l :9000 -p password0"
CMD brook $ARGS