File size: 654 Bytes
719e6e9
54ffcf5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Docketfile goes in root directory Use an official Python runtime as a parent image
FROM python:3.9-slim-buster

# Set the working directory in the container to /app
# All subsequent commands will be run relative to /app
WORKDIR /app

# Copy all files from your Space's root into the container's /app
COPY . /app

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Make port 7860 available to the world outside this container
EXPOSE 7860

# Command to run the Flask application
# Now that app.py is in src/, we need to specify its path relative to WORKDIR /app
CMD ["python", "src/app.py"]