JB Compta v1.1 - multi-activité
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# psycopg2-binary embarque sa propre libpq : pas besoin de build-essential ni libpq-dev.
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
# Fichiers statiques de l'admin (ne nécessite pas la base de données)
|
||||
RUN DJANGO_SECRET_KEY=build python manage.py collectstatic --noinput
|
||||
|
||||
EXPOSE 8000
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user