Spaces:
No application file
No application file
# Use of an official Python runtime as a base image | |
FROM python:3.11.5 | |
# #Set up of working directory in the container i.e /app | |
# WORKDIR /code | |
# # Copy current directory contents into the container at /app | |
# COPY . /app | |
# # Install needed packages specified in requirements.txt recursively | |
# RUN pip install -r requirements.txt | |
# # Expose the port number the app runs on | |
# EXPOSE 7860 | |
# # Command to run the application | |
#CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"] | |
FROM python:3.11.5 | |
WORKDIR /code | |
COPY ./requirements.txt /code/requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
COPY . . | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |