SebaK13 commited on
Commit
708c43f
1 Parent(s): 80a9ffd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -1,6 +1,3 @@
1
-
2
-
3
- # Use the official Python 3.10.14 image
4
  FROM python:3.10.14
5
 
6
  RUN useradd -m -u 1000 user
@@ -8,12 +5,11 @@ RUN useradd -m -u 1000 user
8
  # Switch to the "user" user
9
  USER user
10
 
11
- # Set home to the user's home directory
12
- ENV HOME=/home/user \
13
- PATH=/home/user/.local/bin:$PATH
14
 
15
- # Set the working directory to the user's home directory
16
- WORKDIR $HOME/app
17
 
18
  # Install requirements.txt
19
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt
 
 
 
 
1
  FROM python:3.10.14
2
 
3
  RUN useradd -m -u 1000 user
 
5
  # Switch to the "user" user
6
  USER user
7
 
8
+ # Copy the current directory contents into the container at .
9
+ COPY . .
 
10
 
11
+ # Set the working directory to /
12
+ WORKDIR /
13
 
14
  # Install requirements.txt
15
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt