Spaces:
Sleeping
Sleeping
File size: 502 Bytes
a839ec2 07efdf5 8c7dec9 07efdf5 41da6d1 8c7dec9 41da6d1 8c7dec9 fcabb48 8c7dec9 ad65e55 3420b58 07efdf5 8c7dec9 41da6d1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory
WORKDIR /code
# Copy the requirements file
COPY ./requirements.txt /code/requirements.txt
# Install the dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the application code
COPY . .
# Set the working directory to /code/app
WORKDIR /code/app
# Run the command to start the development server
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |