image-captionator / Dockerfile
Rishabh2234's picture
pushed files for inferences
e064477
raw
history blame contribute delete
410 Bytes
# Use the official Python image as the base
FROM python:3.9
# Set the working directory in the container
WORKDIR /app
# Copy all local files into the container
COPY . .
# Install the dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port that FastAPI will run on
EXPOSE 7860
# Start the FastAPI app with Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]