Browse Source

reduce number of image layers

Fabian Peter Hammerle 4 years ago
parent
commit
83d2b9d8c2
2 changed files with 7 additions and 5 deletions
  1. 2 0
      CHANGELOG.md
  2. 5 5
      Dockerfile

+ 2 - 0
CHANGELOG.md

@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 ## [Unreleased]
+### Fixed
+- reduced number of image layers
 
 ## [1.0.0] - 2019-12-29
 ### Changed

+ 5 - 5
Dockerfile

@@ -3,11 +3,11 @@ FROM alpine:3.10
 ARG TOR_PACKAGE_VERSION=0.3.5.8-r0
 ARG NETCAT_PACKAGE_VERSION=1.130-r1
 RUN apk add --no-cache \
-    netcat-openbsd=${NETCAT_PACKAGE_VERSION} \
-    tor=${TOR_PACKAGE_VERSION}
-
-RUN adduser -S onion
-RUN mkdir -m u=rwx,g=,o= /onion-service && chown onion /onion-service
+        netcat-openbsd=${NETCAT_PACKAGE_VERSION} \
+        tor=${TOR_PACKAGE_VERSION} \
+    && adduser -S onion \
+    && mkdir -m u=rwx,g=,o= /onion-service \
+    && chown onion /onion-service
 VOLUME /onion-service
 
 COPY torrc.template /