23 lines
460 B
Docker
23 lines
460 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
RUN apt-get update && apt-get install -y gettext && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY . .
|
|
|
|
RUN SECRET_KEY=dummy python manage.py compilemessages
|
|
|
|
# Create volume mount points
|
|
RUN mkdir -p /app/media /app/static /app/data
|
|
|
|
EXPOSE 8000
|
|
|
|
RUN chmod +x entrypoint.sh
|
|
ENTRYPOINT ["./entrypoint.sh"]
|