Skip to content

Commit

Permalink
fix: backend user
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki committed Jul 15, 2022
1 parent ebc7d96 commit 4ad7af4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/* && \
yarn config set python /usr/bin/python3

# Create the RHOAS user
RUN useradd -ms /bin/bash backend
USER backend

# Copy repo skeleton first, to avoid unnecessary docker cache invalidation.
# The skeleton contains the package.json of each package in the monorepo,
# and along with yarn.lock and the root package.json, that's enough to run yarn install.
Expand All @@ -33,4 +37,6 @@ RUN tar xzf bundle.tar.gz && rm bundle.tar.gz && chmod -R 777 packages/backend

EXPOSE 7007



CMD ["node", "packages/backend", "--config", "app-config.yaml", "--config", "app-config.production.yaml"]

0 comments on commit 4ad7af4

Please sign in to comment.