1234567891011121314151617181920 |
- # 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
- COPY ./requirements.txt /app/
- ARG CACHEBUST
- RUN pip install -r requirements.txt && apt-get purge -y libmariadb-dev gcc
- COPY . /app/
- EXPOSE 8000
- CMD ["/app/production.sh"]
|