Skip to content

Commit 04732ef

Browse files
committed
flaskuser in docker container
1 parent f121879 commit 04732ef

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ RUN pip install --no-cache-dir -r requirements.txt
1212

1313
COPY . .
1414

15+
RUN useradd -ms /bin/bash flaskuser
16+
RUN chown -R flaskuser:flaskuser /app
17+
18+
USER flaskuser
19+
1520
EXPOSE 5000
1621

1722
CMD ["flask", "run", "--host=0.0.0.0"]

0 commit comments

Comments
 (0)