# syntax=docker/dockerfile:1 FROM python:3-slim-bullseye ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 WORKDIR /app RUN apt-get update && \ apt-get install -y libmariadb-dev gcc nginx COPY ./requirements.txt /app/ ARG CACHEBUST RUN pip install -r requirements.txt && apt-get purge -y libmariadb-dev gcc COPY . /app/ RUN python manage.py collectstatic --noinput EXPOSE 8000 CMD ["/app/production.sh"]