Insurance-Claim-Orchestrato.../Dockerfile
2024-10-03 19:49:39 +02:00

19 lines
No EOL
491 B
Docker

# Use the official Python image from the Docker Hub
FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Copy requirements.txt and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code into the container, excluding files listed in .dockerignore
COPY . .
# Expose the port FastAPI will run on
EXPOSE 8080
# Command to run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]