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 4 years ago
parent
commit
4e193793ae
2 changed files with 6 additions and 1 deletions
  1. 2 0
      CHANGELOG.md
  2. 4 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

+ 4 - 1
Dockerfile

@@ -28,7 +28,10 @@ RUN pip install --no-cache-dir pipenv==2020.6.2
 COPY --chown=nobody . $SOURCE_DIR_PATH
 ENV PIPENV_CACHE_DIR=/tmp/pipenv-cache
 RUN pipenv install --deploy --verbose \
-    && rm -r .git/ $PIPENV_CACHE_DIR
+    && pipenv graph \
+    && pipenv run pip freeze \
+    && 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