Spaces:
No application file
No application file
File size: 726 Bytes
dff6457 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# 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"] |