File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11FROM python:3.12-slim
2+ ARG NIGHTLY=0
23
34# Install packages needed to run your application (not build deps):
45# We need to recreate the /usr/share/man/man{1..8} directories first because
@@ -33,6 +34,11 @@ RUN set -ex \
3334 zlib1g-dev \
3435 " \
3536 && apt-get update && apt-get install -y --no-install-recommends $BUILD_DEPS \
37+ && if [ "$NIGHTLY" = "1" ]; then \
38+ NIGHTLY_URL=$(curl -s https://releases.wagtail.org/nightly/latest.json | \
39+ grep -o 'https://[^"]*' ) \
40+ && sed -i "s|wagtail>=.*|${NIGHTLY_URL}|" /requirements/base.txt; \
41+ fi \
3642 && python3.12 -m venv ${VIRTUAL_ENV} \
3743 && python3.12 -m pip install -U pip \
3844 && python3.12 -m pip install --no-cache-dir -r /requirements/production.txt \
Original file line number Diff line number Diff line change 22 docker :
33 web :
44 dockerfile : Dockerfile
5+ config :
6+ NIGHTLY : 1
57
68release :
79 image : web
You can’t perform that action at this time.
0 commit comments