point-median-backend/Dockerfile

18 lines
347 B
Docker
Raw Permalink Normal View History

2023-09-14 15:21:42 +00:00
FROM python:3.11-slim
# Expose the application port
EXPOSE 8000
# Set the application working directory
WORKDIR /app
# Install the app's dependencies
RUN pip install --upgrade pip
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY *.py ./
# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]