BU-GPT / Dockerfile
amartyasaran's picture
Rename DOCKERFILE to Dockerfile
1d66b7c verified
raw
history blame contribute delete
530 Bytes
# Use the official Python image from the Docker Hub
FROM python:3.11
# Set the working directory in the container
WORKDIR /code
# Copy the requirements file into the container at /app
COPY ./requirements.txt /code/requirements.txt
# Install any dependencies specified in requirements.txt
RUN pip install --no-cache-dir -r /code/requirements.txt
# Copy the current directory contents into the container at /app
COPY . .
# Command to run the FastAPI application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]