Skip to content

Commit

Permalink
Merge pull request #44 from CanDIG/fnguyen/candig-user
Browse files Browse the repository at this point in the history
DIG-1377: Be consistent in our use of candig user inside containers
  • Loading branch information
OrdiNeu authored Dec 20, 2023
2 parents b649ed8 + 965be67 commit 2deae85
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN apk add --no-cache \
pcre-dev \
git

RUN addgroup candig
RUN addgroup -S candig && adduser -S candig -G candig

COPY requirements.txt /app/federation/requirements.txt

Expand All @@ -40,6 +40,12 @@ COPY . /app/federation

WORKDIR /app/federation

RUN chown -R candig:candig /app/federation

RUN mkdir /app/config

RUN chown -R candig:candig /app/config

USER candig

ENTRYPOINT ["bash", "entrypoint.sh"]

0 comments on commit 2deae85

Please sign in to comment.