2023-09-24 19:18:39 +00:00
|
|
|
FROM node:alpine as base
|
2023-09-06 10:23:31 +00:00
|
|
|
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/
|
2023-09-24 19:18:39 +00:00
|
|
|
COPY --from=gogost/gost:3.0.0-rc8 /bin/gost /usr/local/bin/gost
|
2023-09-06 10:23:31 +00:00
|
|
|
|
2023-09-27 07:01:52 +00:00
|
|
|
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
|
|
|
|
|
2023-09-06 10:23:31 +00:00
|
|
|
RUN apk add -U --no-cache \
|
|
|
|
iproute2 iptables net-tools \
|
|
|
|
screen vim curl bash \
|
|
|
|
wireguard-tools \
|
2023-09-29 04:02:23 +00:00
|
|
|
openssl \
|
2023-09-06 10:23:31 +00:00
|
|
|
dumb-init \
|
2023-09-18 17:31:07 +00:00
|
|
|
tor \
|
2023-09-06 10:23:31 +00:00
|
|
|
redis
|
|
|
|
|
2023-09-24 19:18:39 +00:00
|
|
|
|
|
|
|
FROM base
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY /src/ /app/
|
|
|
|
COPY /config/torrc /etc/tor/torrc
|
|
|
|
|
2023-09-06 10:23:31 +00:00
|
|
|
EXPOSE 3000/tcp
|
|
|
|
|
2023-10-08 08:54:39 +00:00
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
2023-10-31 15:03:19 +00:00
|
|
|
CMD curl -f http://127.0.0.1:3000/api/healthcheck || exit 1
|
2023-10-08 08:54:39 +00:00
|
|
|
|
2023-09-24 19:18:39 +00:00
|
|
|
COPY docker-entrypoint.sh /usr/bin/entrypoint
|
2023-09-25 11:56:34 +00:00
|
|
|
RUN chmod +x /usr/bin/entrypoint
|
2023-09-24 19:18:39 +00:00
|
|
|
ENTRYPOINT ["/usr/bin/entrypoint"]
|
2023-09-06 10:23:31 +00:00
|
|
|
|
|
|
|
CMD ["npm", "run", "dev"]
|