# Dockerfile FROM python:3.12.9-slim-bookworm # Create a working directory for the app WORKDIR /app # Copy requirements first, to leverage Docker's layer caching COPY instalinks/requirements.txt /app/ # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the source code COPY instalinks/ /app/ # Set environment variables for Django ENV PYTHONUNBUFFERED 1 ENV DJANGO_SETTINGS_MODULE instagram_links.settings # Expose the port Django runs on EXPOSE 8000 # Default command: run the Django dev server CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]