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 1
1
FROM python:3.12-slim
2
+ ARG NIGHTLY=0
2
3
3
4
# Install packages needed to run your application (not build deps):
4
5
# We need to recreate the /usr/share/man/man{1..8} directories first because
@@ -33,6 +34,11 @@ RUN set -ex \
33
34
zlib1g-dev \
34
35
" \
35
36
&& 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 \
36
42
&& python3.12 -m venv ${VIRTUAL_ENV} \
37
43
&& python3.12 -m pip install -U pip \
38
44
&& python3.12 -m pip install --no-cache-dir -r /requirements/production.txt \
Original file line number Diff line number Diff line change 2
2
docker :
3
3
web :
4
4
dockerfile : Dockerfile
5
+ config :
6
+ NIGHTLY : 0
5
7
6
8
release :
7
9
image : web
You can’t perform that action at this time.
0 commit comments