# 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"]