File size: 339 Bytes
f5a7a9e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.9-slim

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY . /code

# Make directory for uploads
RUN mkdir -p /code/uploads
RUN chmod 777 /code/uploads

# Expose the port
EXPOSE 7860

# Command to run the application
CMD ["python", "app.py"]