mirror of
https://github.com/teddysun/across.git
synced 2025-09-15 19:14:26 +08:00
Added multiple architectures Dockerfile
This commit is contained in:
17
docker/brook/Dockerfile.architecture
Normal file
17
docker/brook/Dockerfile.architecture
Normal file
@@ -0,0 +1,17 @@
|
||||
# Dockerfile for Brook based alpine
|
||||
# Copyright (C) 2019 - 2020 Teddysun <i@teddysun.com>
|
||||
# Reference URL:
|
||||
# https://github.com/txthinking/brook
|
||||
|
||||
FROM --platform=$TARGETPLATFORM golang:alpine as builder
|
||||
RUN set -ex && apk add --update git \
|
||||
&& go get -u -v github.com/txthinking/brook/cli/brook
|
||||
|
||||
FROM --platform=$TARGETPLATFORM alpine:latest
|
||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||
|
||||
COPY --from=builder /go/bin/brook /usr/bin
|
||||
|
||||
ENV ARGS="server -l :9000 -p password0"
|
||||
|
||||
CMD brook $ARGS
|
Reference in New Issue
Block a user