Skip to content

Commit

Permalink
Don't run app as root in Docker container
Browse files Browse the repository at this point in the history
inspired by gitlabform/gitlabform#719
by @lkwg82 (thanks!)
  • Loading branch information
gdubicki authored and bastelfreak committed Apr 15, 2024
1 parent f9a52d5 commit 17caf4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Expand Up @@ -24,4 +24,7 @@ RUN pip install --no-cache-dir -r requirements-docker.txt .

COPY Dockerfile /

RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser

CMD gunicorn -b ${PUPPETBOARD_HOST}:${PUPPETBOARD_PORT} --preload --workers="${PUPPETBOARD_WORKERS:-1}" -e SCRIPT_NAME="${PUPPETBOARD_URL_PREFIX:-}" --access-logfile=- puppetboard.app:app

0 comments on commit 17caf4a

Please sign in to comment.