mirror of
https://github.com/wireadmin/wireadmin
synced 2025-06-26 18:28:06 +00:00
Initial Commit
This commit is contained in:
@@ -1,21 +1,3 @@
|
||||
FROM --platform=$BUILDPLATFORM golang:1.20-alpine as gost
|
||||
|
||||
# Convert TARGETPLATFORM to GOARCH format
|
||||
# https://github.com/tonistiigi/xx
|
||||
COPY --from=tonistiigi/xx:golang / /
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
RUN apk add --no-cache musl-dev git gcc
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN git clone https://github.com/ginuerzh/gost.git
|
||||
|
||||
ENV GO111MODULE=on
|
||||
|
||||
RUN cd gost/cmd/gost && go env && go build -v
|
||||
|
||||
FROM docker.io/library/node:alpine
|
||||
WORKDIR /app
|
||||
|
||||
@@ -23,15 +5,17 @@ ENV TZ=UTC
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
COPY --from=golang:1.20-alpine /usr/local/go/ /usr/local/go/
|
||||
COPY --from=gost /src/gost/cmd/gost/gost /usr/local/bin/gost
|
||||
COPY --from=gogost/gost /bin/gost /usr/local/bin/gost
|
||||
|
||||
COPY src/ /app/
|
||||
COPY /src/ /app/
|
||||
COPY /config/torrc /etc/tor/torrc
|
||||
|
||||
RUN apk add -U --no-cache \
|
||||
iproute2 iptables net-tools \
|
||||
screen vim curl bash \
|
||||
wireguard-tools \
|
||||
dumb-init \
|
||||
tor \
|
||||
redis
|
||||
|
||||
EXPOSE 3000/tcp
|
||||
|
||||
Reference in New Issue
Block a user