wireadmin/Dockerfile-Dev
2023-09-25 15:26:34 +03:30

32 lines
627 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
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"]