Skip to content

Commit

Permalink
Build docker image to run with non root user
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesoconor authored and danihodovic committed Jun 5, 2024
1 parent a7674c8 commit ef6e5b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ RUN apt-get update && \
&& poetry config virtualenvs.create false \
&& poetry install --no-interaction \
&& rm -rf /root/.cache \
&& apt remove -y build-essential
&& apt remove -y build-essential \
&& adduser --disabled-login exporter

USER exporter

COPY . /app/

Expand Down

0 comments on commit ef6e5b4

Please sign in to comment.