Skip to content

Commit 1f1d20d

Browse files
committed
chore: make USER non-root
1 parent 2dc7f1f commit 1f1d20d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dispatcher/docker/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ RUN pip install --no-cache-dir -r requirements.txt
88
COPY ./templates /usr/app/templates
99
COPY ./dispatcher/main.py /usr/app/src/main.py
1010

11-
#USER python
12-
13-
#ENV FOO=BAR
11+
RUN useradd -s /bin/bash python
12+
USER python
1413

1514
ENTRYPOINT [ "python", "-u" ]
1615
CMD ["main.py"]

0 commit comments

Comments
 (0)