Modélisation de données

This commit is contained in:
Etienne GILLE
2026-02-13 16:04:01 +01:00
parent a9a8256137
commit e3eb424290
19 changed files with 468 additions and 0 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
# Build
FROM python:3.14 as build
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN apt-get --no-cache install npm
RUN python ./manage.py collectstatic
RUN rm -rf node_modules
# Run
FROM python:3.14-slim
WORKDIR /usr/src/app
COPY --from=build /usr/local/lib/python3.14/site-packages/ /usr/local/lib/python3.13/site-packages/
COPY --from=build /usr/src/app .
EXPOSE 8000
CMD [ "gunicorn", "reunion.wsgi"]