mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 05:47:03 +03:00
25 lines
592 B
Erlang
25 lines
592 B
Erlang
# 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 ["gunicorn", "instalinks.wsgi:application"] |