Mythus commited on
Commit
480dd15
·
verified ·
1 Parent(s): f5312f5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -12
Dockerfile CHANGED
@@ -1,21 +1,14 @@
1
  # Use a specific version for the base image
2
  FROM python:3.8
3
 
4
- # Create a non-root user with a different UID
5
- RUN useradd -m -u 1001 user
6
 
7
- ENV HOME=/home/user \
8
- PATH=/home/user/.local/bin:$PATH
9
-
10
- WORKDIR $HOME/app
11
-
12
- USER root
13
- # Install dependencies (pip requests module in this case)
14
  RUN pip install requests
15
- USER user
16
 
17
- # Copy application files
18
- COPY --chown=user . .
19
 
20
  # Expose the desired port
21
  EXPOSE 8080
 
1
  # Use a specific version for the base image
2
  FROM python:3.8
3
 
4
+ # Set a working directory in the container
5
+ WORKDIR /app
6
 
7
+ # Install dependencies
 
 
 
 
 
 
8
  RUN pip install requests
 
9
 
10
+ # Copy application files to the container at /app
11
+ COPY . /app
12
 
13
  # Expose the desired port
14
  EXPOSE 8080