mirror of
https://github.com/wireadmin/wireadmin
synced 2025-01-23 12:27:00 +00:00
35 lines
814 B
Plaintext
35 lines
814 B
Plaintext
FROM node:alpine as base
|
|
WORKDIR /app
|
|
|
|
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=gogost/gost:3.0.0-rc8 /bin/gost /usr/local/bin/gost
|
|
|
|
COPY --from=chriswayg/tor-alpine:latest /usr/local/bin/obfs4proxy /usr/local/bin/obfs4proxy
|
|
COPY --from=chriswayg/tor-alpine:latest /usr/local/bin/meek-server /usr/local/bin/meek-server
|
|
|
|
RUN apk add -U --no-cache \
|
|
iproute2 iptables net-tools \
|
|
screen vim curl bash \
|
|
wireguard-tools \
|
|
dumb-init \
|
|
tor \
|
|
redis
|
|
|
|
|
|
FROM base
|
|
WORKDIR /app
|
|
|
|
COPY /src/ /app/
|
|
COPY /config/torrc /etc/tor/torrc
|
|
|
|
EXPOSE 3000/tcp
|
|
|
|
COPY docker-entrypoint.sh /usr/bin/entrypoint
|
|
RUN chmod +x /usr/bin/entrypoint
|
|
ENTRYPOINT ["/usr/bin/entrypoint"]
|
|
|
|
CMD ["npm", "run", "dev"]
|