h3110Fr13nd commited on
Commit
d272a40
1 Parent(s): b967a93

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,9 +1,12 @@
1
  # Use the official Python image as the base image
2
  FROM python:3.9-slim
3
 
 
4
  # Set the working directory in the container
5
- WORKDIR /app
6
 
 
 
 
7
  # Copy the requirements file into the container
8
  COPY requirements.txt .
9
 
@@ -15,8 +18,5 @@ COPY . .
15
 
16
  # Expose port 8080 for the Flask app
17
  EXPOSE 8080
18
-
19
- USER root
20
-
21
  # Set the entrypoint command to run the Flask app
22
  CMD ["python", "app.py"]
 
1
  # Use the official Python image as the base image
2
  FROM python:3.9-slim
3
 
4
+
5
  # Set the working directory in the container
 
6
 
7
+ RUN chown -R me:me /app
8
+ USER me
9
+ WORKDIR /app
10
  # Copy the requirements file into the container
11
  COPY requirements.txt .
12
 
 
18
 
19
  # Expose port 8080 for the Flask app
20
  EXPOSE 8080
 
 
 
21
  # Set the entrypoint command to run the Flask app
22
  CMD ["python", "app.py"]