Browse Source

upgrade default tor version: 0.4.1.7 -> 0.4.3.5

Fabian Peter Hammerle 3 years ago
parent
commit
2fa5173bb5
2 changed files with 6 additions and 6 deletions
  1. 4 4
      Dockerfile
  2. 2 2
      docker-compose.yml

+ 4 - 4
Dockerfile

@@ -1,10 +1,10 @@
-FROM alpine:3.11
+FROM alpine:3.12
 
-ARG TOR_PACKAGE_VERSION=0.4.1.7-r0
 ARG NETCAT_PACKAGE_VERSION=1.130-r1
+ARG TOR_PACKAGE_VERSION=0.4.3.5-r0
 RUN apk add --no-cache \
-        netcat-openbsd=${NETCAT_PACKAGE_VERSION} \
-        tor=${TOR_PACKAGE_VERSION} \
+        netcat-openbsd=$NETCAT_PACKAGE_VERSION \
+        tor=$TOR_PACKAGE_VERSION \
     && adduser -S onion \
     && mkdir -m u=rwx,g=,o= /onion-service \
     && chown onion /onion-service

+ 2 - 2
docker-compose.yml

@@ -13,8 +13,8 @@ services:
       VIRTUAL_PORT: 80
       TARGET: 1.2.3.4:8080
     security_opt: [no-new-privileges]
-    restart: unless-stopped
     cpus: 0.5
     mem_limit: 128m
+    restart: unless-stopped
 
-# https://docs.docker.com/compose/compose-file/
+# https://docs.docker.com/compose/compose-file/compose-file-v2/