Dockerfile 365 B

1234567891011121314151617181920
  1. # syntax=docker/dockerfile:1
  2. FROM python:3-slim-bullseye
  3. ENV PYTHONDONTWRITEBYTECODE=1
  4. ENV PYTHONUNBUFFERED=1
  5. WORKDIR /app
  6. RUN apt-get update && \
  7. apt-get install -y libmariadb-dev gcc
  8. COPY ./requirements.txt /app/
  9. ARG CACHEBUST
  10. RUN pip install -r requirements.txt && apt-get purge -y libmariadb-dev gcc
  11. COPY . /app/
  12. EXPOSE 8000
  13. CMD ["/app/production.sh"]