|
@@ -1,19 +1,24 @@
|
|
|
|
|
|
-FROM alpine:3.11
|
|
|
+FROM alpine:3.12
|
|
|
|
|
|
+ARG TOR_PACKAGE_VERSION=0.4.3.5-r0
|
|
|
+ARG OBFS4PROXY_PACKAGE_VERSION=0.0.11-r2
|
|
|
RUN adduser -S onion \
|
|
|
- && apk add --no-cache tor=0.4.1.9-r1 \
|
|
|
- && apk add --no-cache obfs4proxy=0.0.11-r1 \
|
|
|
+ && apk add --no-cache tor=$TOR_PACKAGE_VERSION \
|
|
|
+ && apk add --no-cache obfs4proxy=$OBFS4PROXY_PACKAGE_VERSION \
|
|
|
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
ENV OR_PORT=
|
|
|
ENV PT_PORT=
|
|
|
ENV CONTACT_INFO=
|
|
|
-COPY torrc.template /
|
|
|
-RUN chmod a+r /torrc.template
|
|
|
-
|
|
|
-COPY entrypoint.sh /
|
|
|
-RUN chmod a+rx /entrypoint.sh
|
|
|
+COPY torrc.template entrypoint.sh /
|
|
|
+RUN chmod -c a+rX /torrc.template /entrypoint.sh
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
USER onion
|