Fix: the issue of regenerating the config file without filling the placeholders.

This commit is contained in:
Shahrad Elahi
2024-02-15 11:12:05 +03:30
parent ccc3b20132
commit ff674dda61
6 changed files with 72 additions and 61 deletions

View File

@@ -5,8 +5,8 @@ WORKDIR /app
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
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
COPY --from=chriswayg/tor-alpine:latest --platform=$BUILDPLATFORM /usr/local/bin/obfs4proxy /usr/local/bin/obfs4proxy
COPY --from=chriswayg/tor-alpine:latest --platform=$BUILDPLATFORM /usr/local/bin/meek-server /usr/local/bin/meek-server
# Update and upgrade packages
RUN apk update && apk upgrade &&\
@@ -21,7 +21,7 @@ RUN apk update && apk upgrade &&\
# Clear APK cache
rm -rf /var/cache/apk/*
COPY /config/torrc /etc/tor/torrc
COPY /config/torrc.template /etc/tor/torrc.template
# Copy user scripts
COPY /bin /usr/local/bin