trybeforebuy / Dockerfile
mudassir345b's picture
Create Dockerfile
6c0010e verified
raw
history blame contribute delete
322 Bytes
FROM python:3.9
# Set the working directory
WORKDIR /code
# Copy files into the container
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Expose port used by FastAPI
EXPOSE 7860
# Run the FastAPI app with uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]