File size: 483 Bytes
18a7173
 
 
c3f7f47
 
 
 
18a7173
 
 
689f952
18a7173
 
689f952
4ea3244
689f952
18a7173
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use the official Python 3.9 image
FROM python:3.9-slim

# Set environment variables
ENV FLASK_APP=app.py
ENV FLASK_ENV=development

# Set the working directory
WORKDIR /app

# Copy all files to the container
COPY . .

# Change permissions of the root directory and the data.db file
RUN chmod 777 data.db

# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Expose port 7860 for Hugging Face Spaces
EXPOSE 7860

# Run the Flask app
CMD ["python", "app.py"]