test24 / Dockerfile
Niansuh's picture
Update Dockerfile
e5f1c8b verified
raw
history blame
384 Bytes
# Use official Python image
FROM python:3.9-slim
# Set the working directory
WORKDIR /app
# Copy requirements.txt
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Expose the port
EXPOSE 8000
# Command to run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]