Shujah239's picture
Create Dockerfile
f5a7a9e verified
raw
history blame
339 Bytes
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"]