arithescientist commited on
Commit
630ddd9
·
verified ·
1 Parent(s): f2946ad

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -3,7 +3,11 @@ FROM python:3.7.10
3
  WORKDIR /opt/
4
  RUN apt-get update -y
5
  RUN apt-get install libsm6 libxext6 -y
6
-
 
 
 
 
7
 
8
  COPY --chown=user requirements.txt requirements.txt
9
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
3
  WORKDIR /opt/
4
  RUN apt-get update -y
5
  RUN apt-get install libsm6 libxext6 -y
6
+
7
+
8
+ # Create non-root user
9
+ RUN useradd -m -u 1000 user
10
+ WORKDIR /app
11
 
12
  COPY --chown=user requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt