File size: 449 Bytes
9b9354c fa56da3 9b9354c c7b1ae2 fa56da3 c7b1ae2 fa56da3 1d2b7ef fa56da3 aa5a346 fa56da3 1d2b7ef c7b1ae2 fa56da3 63334ed fa56da3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# Dockerfile
# Use official Python image as base
FROM python:3.11-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set work directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Copy project
COPY . .
# Expose port
EXPOSE 8000
# Run the application
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|