NBayer commited on
Commit
9db1b12
·
1 Parent(s): 5cf51b1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -16
Dockerfile CHANGED
@@ -1,21 +1,11 @@
1
- FROM python:3.9
2
 
3
- # Set up a new user named "user" with user ID 1000
4
- RUN useradd -m -u 1000 user
5
 
6
- # Switch to the "user" user
7
- USER user
8
-
9
- # Set home to the user's home directory
10
- ENV HOME=/home/user \
11
- PATH=/home/user/.local/bin:$PATH
12
-
13
- # Set the working directory to the user's home directory
14
- WORKDIR $HOME/app
15
 
16
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
17
- COPY --chown=user . $HOME/app
18
 
19
- RUN pip install -r requirements.txt
20
 
21
- CMD ["python", "./app.py"]
 
1
+ FROM python:3.8
2
 
3
+ COPY requirements.txt .
 
4
 
5
+ RUN pip install -r requirements.txt
 
 
 
 
 
 
 
 
6
 
7
+ COPY . .
 
8
 
9
+ EXPOSE 5000
10
 
11
+ CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"]