diff --git a/Dockerfile b/Dockerfile index 4bf5c73c..a76496f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM python:3.12-slim +ARG NIGHTLY=0 # Install packages needed to run your application (not build deps): # We need to recreate the /usr/share/man/man{1..8} directories first because @@ -39,6 +40,12 @@ RUN set -ex \ && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $BUILD_DEPS \ && rm -rf /var/lib/apt/lists/* +RUN if [ "$NIGHTLY" = "1" ]; then \ + curl -s https://releases.wagtail.org/nightly/latest.json | \ + grep -o 'https://[^"]*' | \ + xargs python3.12 -m pip install; \ +fi + RUN mkdir /code/ WORKDIR /code/ ADD . /code/ diff --git a/heroku.yml b/heroku.yml index b18fd649..1a259f1b 100644 --- a/heroku.yml +++ b/heroku.yml @@ -2,6 +2,8 @@ build: docker: web: dockerfile: Dockerfile + config: + NIGHTLY: 1 release: image: web