Skip to content

Commit

Permalink
fix(api/dockerfile): give /projects correct permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Aug 15, 2023
1 parent 646a3d4 commit c1db0a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ WORKDIR /app
RUN wget -q https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh -P /usr/local/bin \
&& chmod +x /usr/local/bin/wait-for-it.sh \
&& mkdir -p /app \
&& mkdir /projects \
&& useradd -u 901 -r outdated --create-home \
# all project specific folders need to be accessible by newly created user but also for unknown users (when UID is set manually). Such users are in group root.
&& chown -R outdated:root /home/outdated \
&& chown -R outdated:root /projects \
&& chmod -R 770 /home/outdated \
&& chmod -R 770 /projects \
&& apt-get update && apt-get install -y --no-install-recommends \
# needed for psycopg2
libpq-dev \
Expand Down

0 comments on commit c1db0a3

Please sign in to comment.