update tor config

This commit is contained in:
Shahrad Elahi
2023-12-11 02:50:54 +03:30
parent d4727ef3e1
commit 403a799bb6
7 changed files with 81 additions and 95 deletions

View File

@@ -9,29 +9,20 @@ COPY --from=chriswayg/tor-alpine:latest /usr/local/bin/obfs4proxy /usr/local/bin
COPY --from=chriswayg/tor-alpine:latest /usr/local/bin/meek-server /usr/local/bin/meek-server
COPY /config/torrc /etc/tor/torrc
COPY /config/tor-bridges /etc/tor/bridges
# Set the mirror list
RUN echo "https://uk.alpinelinux.org/alpine/latest-stable/main" > /etc/apk/repositories && \
echo "https://mirror.bardia.tech/alpine/latest-stable/main" >> /etc/apk/repositories && \
echo "https://uk.alpinelinux.org/alpine/latest-stable/community" >> /etc/apk/repositories &&\
echo "https://mirror.bardia.tech/alpine/latest-stable/community" >> /etc/apk/repositories
COPY /config/obfs4-bridges.conf /etc/torrc.d/obfs4-bridges.conf
# Update and upgrade packages
RUN apk update && apk upgrade
# Install required packages
RUN apk add -U --no-cache \
iproute2 iptables net-tools \
screen vim curl bash \
wireguard-tools \
openssl \
dumb-init \
tor \
redis
# Clear cache
RUN rm -rf /var/cache/apk/*
RUN apk update && apk upgrade \
# Install required packages
&& apk add -U --no-cache \
iproute2 iptables net-tools \
screen vim curl bash \
wireguard-tools \
openssl \
tor \
redis \
# Clear APK cache
&& rm -rf /var/cache/apk/*
FROM base AS deps
@@ -50,12 +41,11 @@ FROM base AS runner
COPY --from=deps /temp/dev/node_modules node_modules
COPY docker-entrypoint.sh /usr/bin/entrypoint
RUN chmod +x /usr/bin/entrypoint
ENTRYPOINT ["/usr/bin/entrypoint"]
COPY docker-entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
HEALTHCHECK --interval=60s --timeout=3s --start-period=20s --retries=3 \
CMD curl -f http://127.0.0.1:3000/api/health || exit 1
VOLUME ["/etc/torrc.d"]
# run the appc
EXPOSE 5173/tcp