uripper commited on
Commit
70cdff9
·
1 Parent(s): 4e99f17
Files changed (1) hide show
  1. Dockerfile +12 -4
Dockerfile CHANGED
@@ -4,14 +4,22 @@ FROM python:3.11
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
- # Copy only the contents of your app folder into the container
8
- COPY ./app /app
 
9
 
10
  # Install any needed packages specified in requirements.txt
11
- RUN pip install --no-cache-dir -r ./requirements.txt
12
 
13
  # Make port 7860 available to the world outside this container
14
  EXPOSE 7860
15
 
 
 
 
 
 
 
 
16
  # Run app.py when the container launches
17
- CMD ["python", "/app/app.py"]
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
+ # Copy the current directory contents into the container at /app
8
+ COPY . /app
9
+
10
 
11
  # Install any needed packages specified in requirements.txt
12
+ RUN pip install --no-cache-dir -r /app/requirements.txt
13
 
14
  # Make port 7860 available to the world outside this container
15
  EXPOSE 7860
16
 
17
+ # Define environment variable
18
+ ENV NAME FlaskApp
19
+
20
+ # Debugging: Print the contents of the /app directory
21
+ RUN ls -la /app
22
+ RUN ls -la /
23
+
24
  # Run app.py when the container launches
25
+ CMD ["python", "app/app.py"]