saas_model / Dockerfile
bunny0702's picture
Upload 4 files
24c5686 verified
raw
history blame contribute delete
456 Bytes
# Use the official Python image from the Docker Hub
FROM python:3.8-slim
# Set the working directory
WORKDIR /app
# Copy the requirements file
COPY requirements.txt ./
# Install the dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your application files
COPY . .
# Expose the port the app runs on
EXPOSE 80
# Command to run the app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]