Skip to content

Commit

Permalink
Issue #74 Dockerfile: attempt to fix permissions through user groups
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Sep 27, 2023
1 parent 88d647e commit 95eaba0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ RUN echo "[global]" >> $PIP_CONF && \
cat $PIP_CONF


RUN useradd --create-home openeo

# Directory for output logs
RUN mkdir -p /var/log/openeo
RUN chown openeo:openeo /var/log/openeo

# Build and run as non-root (see https://pythonspeed.com/articles/root-capabilities-docker-security/)
# Put user in necessary groups for desired runtime permissions (631600014=eodata, 631600010=vito)
RUN useradd --create-home --gid 631600014 --groups 631600010 openeo
WORKDIR /home/openeo
USER openeo

Expand Down
2 changes: 1 addition & 1 deletion src/openeo_aggregator/about.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.10.7a1"
__version__ = "0.10.8a1"

0 comments on commit 95eaba0

Please sign in to comment.