matthoffner commited on
Commit
7d42f36
1 Parent(s): c670e98

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -4,15 +4,19 @@ ENV PYTHONUNBUFFERED 1
4
 
5
  EXPOSE 8000
6
 
7
- WORKDIR /app
 
 
 
8
 
9
- RUN wget -qO- "https://cmake.org/files/v3.17/cmake-3.17.0-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local
10
 
11
  COPY requirements.txt ./
12
  RUN pip install --upgrade pip && \
13
  pip install -r requirements.txt
14
 
15
- COPY --chown=user . .
 
16
 
17
  RUN ls -al
18
 
 
4
 
5
  EXPOSE 8000
6
 
7
+ RUN useradd -m -u 1000 user
8
+ USER user
9
+ ENV HOME=/home/user \
10
+ PATH=/home/user/.local/bin:$PATH
11
 
12
+ WORKDIR $HOME/app
13
 
14
  COPY requirements.txt ./
15
  RUN pip install --upgrade pip && \
16
  pip install -r requirements.txt
17
 
18
+
19
+ COPY --chown=user . $HOME/app
20
 
21
  RUN ls -al
22