ai-image-generation / Dockerfile
Pamudu13's picture
Update Dockerfile
23975dc verified
raw
history blame contribute delete
385 Bytes
FROM python:3.9
# Set the working directory
WORKDIR /code
# Copy the requirements file
COPY ./requirements.txt /code/requirements.txt
# Install dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the rest of the application code
COPY . .
# Command to run the application with increased timeout
CMD ["hypercorn", "-b", "0.0.0.0:7860", "app:app"]