File size: 521 Bytes
8289f5b
 
 
 
 
 
 
8c30f0c
 
 
8289f5b
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Dockerfile
# Use the official Python image as the base image
FROM python:3.9

# Set the working directory
WORKDIR /app

# Create a writeable cache directory
RUN mkdir -p /app/cache && chmod 777 /app/cache

# Copy the requirements file to the working directory
COPY requirements.txt .

# Install the dependencies
RUN pip install -r requirements.txt

# Copy the rest of the files to the working directory
COPY . .

# Expose port 5000
EXPOSE 7860

# Run the start.sh script when the container starts
CMD ["sh", "start.sh"]