Skip to content

Commit

Permalink
Add image appuser (#1000)
Browse files Browse the repository at this point in the history
* Adding appuser to run app
  • Loading branch information
pricem14pc authored Oct 21, 2024
1 parent d8afe77 commit 8c81ba6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion _infra/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ RUN pip install pipenv
WORKDIR /app

COPY . /app

RUN groupadd -r appuser && useradd -r -g appuser -u 9000 appuser && chown -R appuser:appuser .
RUN mkdir /home/appuser && chown appuser:appuser /home/appuser
RUN pipenv install --deploy --system

CMD ["gunicorn", "-b", "0.0.0.0:9000", "--workers", "4", "--timeout", "300", "frontstage:app"]
USER appuser

CMD ["gunicorn", "-b", "0.0.0.0:9000", "--workers", "4", "--timeout", "300", "frontstage:app"]
4 changes: 2 additions & 2 deletions _infra/helm/frontstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 2.5.27
version: 2.5.28

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 2.5.27
appVersion: 2.5.28

0 comments on commit 8c81ba6

Please sign in to comment.