Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix security issue by avoiding running container as root in Dockerfile #92

Merged
merged 8 commits into from
May 21, 2024
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ LABEL maintainer="Phillipe Smith <[email protected]>" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"

RUN adduser --disabled-password --gecos '' rundeck

USER rundeck

COPY requirements.txt /app/

RUN pip install --no-cache-dir --disable-pip-version-check -r /app/requirements.txt
Expand Down