Spaces:
Runtime error
Runtime error
File size: 571 Bytes
864175f 39db307 864175f 39db307 e817bc3 5a959b6 c706049 | 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 the base image
FROM python:3.9-slim-buster
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container
COPY ./requirements.txt /app/requirements.txt
# Install the Python dependencies
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
# Copy the current directory contents into the container
COPY . /app/
# Expose the port that FastAPI app will run on
EXPOSE 6000
# Start the FastAPI app on port 7860, the default port expected by Spaces
CMD ["python", "/app/app.py"] |