Files
market_page/backend/Dockerfile
jeremygan2021 43a0b65803 finish
2026-02-02 22:55:41 +08:00

20 lines
423 B
Docker

# Use an official Python runtime as a parent image
FROM python:3.13-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set work directory
WORKDIR /app
# Install python dependencies
COPY requirements.txt /app/
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy project
COPY . /app/
# Run the application
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]