Browse Source

dockerfile: chmod files copied from host to no longer require o=rX perms on host

https://github.com/fphammerle/wireless-sensor-mqtt/commit/885700d508f9462e75f5e103ee7d3bfdaf1bddbe
https://github.com/fphammerle/systemctl-mqtt/commit/cbf8539de9d1d814ec09a9a6f8a1188bdc2ec1e4
Fabian Peter Hammerle 3 years ago
parent
commit
58ac257db5
2 changed files with 4 additions and 1 deletions
  1. 2 0
      CHANGELOG.md
  2. 2 1
      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
+- dockerfile: `chmod` files copied from host to no longer require `o=rX` perms on host
 
 ## [0.6.0] - 2020-12-19
 ### Added

+ 2 - 1
Dockerfile

@@ -31,7 +31,8 @@ ENV PIPENV_CACHE_DIR=/tmp/pipenv-cache \
 RUN pipenv install --deploy --verbose \
     && pipenv graph \
     && pipenv run pip freeze \
-    && rm -r .git/ $PIPENV_CACHE_DIR
+    && rm -r .git/ $PIPENV_CACHE_DIR \
+    && chmod -cR a+rX .
 
 # workaround for broken multi-stage copy
 # > failed to copy files: failed to copy directory: Error processing tar file(exit status 1): Container ID ... cannot be mapped to a host ID