Spaces:
Sleeping
Sleeping
File size: 663 Bytes
57444a2 4f3c906 5cd6b56 57444a2 4f3c906 5cd6b56 57444a2 4f3c906 5cd6b56 eb64a08 4f3c906 5cd6b56 eb64a08 4f3c906 5cd6b56 eb64a08 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Use an official Python runtime as a parent image
FROM python:3.9
# Set the working directory to /code
WORKDIR /code
# Copy the requirements file into the container
COPY ./requirements.txt /code/requirements.txt
# Install the dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy your entire project (including the src folder) into the container
COPY ./ /code/
# Run the FastAPI app, specifying the module path
# The format is <folder.file_name>:<app_variable>
# If you have a src folder and streamlit_app.py file, the path is src.streamlit_app
CMD ["uvicorn", "src.streamlit_app:app", "--host", "0.0.0.0", "--port", "7860"] |