12 lines
343 B
Docker
12 lines
343 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM python:3
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
WORKDIR /app
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt update && apt install -y gettext && rm -rf /var/lib/apt/lists/*
|
|
COPY requirements.txt /app/
|
|
RUN pip install -r requirements.txt
|
|
COPY . /app/
|
|
RUN python /app/manage.py collectstatic --noinput
|