@@ -17,40 +17,40 @@ WORKDIR /srv/onadata
1717
1818# hadolint ignore=DL3008
1919RUN apt-get update \
20- && apt-get install -y --no-install-recommends git-core gcc libc6-dev build-essential libgdal-dev libmemcached-dev zlib1g-dev \
21- && ldconfig \
22- && rm -rf /var/lib/apt/lists/*
20+ && apt-get install -y --no-install-recommends git-core gcc libc6-dev build-essential libgdal-dev libmemcached-dev zlib1g-dev \
21+ && ldconfig \
22+ && rm -rf /var/lib/apt/lists/*
2323
2424RUN python -m venv /srv/onadata/.venv
2525
2626
2727# hadolint ignore=DL3013
2828RUN --mount=type=secret,id=ONADEPLOY_GH_TOKEN \
29- if [ -n "$optional_packages" ]; then \
30- test -s /run/secrets/ONADEPLOY_GH_TOKEN \
31- || { echo "ONADEPLOY_GH_TOKEN secret is required"; exit 1; } \
32- && git config --global \
33- url."https://x-access-token:$(cat /run/secrets/ONADEPLOY_GH_TOKEN)@github.com/".insteadOf \
34- "https://github.com/" \
35- && git config --global --add \
36- url."https://x-access-token:$(cat /run/secrets/ONADEPLOY_GH_TOKEN)@github.com/".insteadOf \
37- "ssh://git@github.com/" \
38- && /srv/onadata/.venv/bin/pip install --no-cache-dir ${optional_packages} \
39- && rm -f ~/.gitconfig; \
40- fi
29+ if [ -n "$optional_packages" ]; then \
30+ test -s /run/secrets/ONADEPLOY_GH_TOKEN \
31+ || { echo "ONADEPLOY_GH_TOKEN secret is required"; exit 1; } \
32+ && git config --global \
33+ url."https://x-access-token:$(cat /run/secrets/ONADEPLOY_GH_TOKEN)@github.com/".insteadOf \
34+ "https://github.com/" \
35+ && git config --global --add \
36+ url."https://x-access-token:$(cat /run/secrets/ONADEPLOY_GH_TOKEN)@github.com/".insteadOf \
37+ "ssh://git@github.com/" \
38+ && /srv/onadata/.venv/bin/pip install --no-cache-dir ${optional_packages} \
39+ && rm -f ~/.gitconfig; \
40+ fi
4141
4242# hadolint ignore=DL3013
4343RUN python -m pip install --no-cache-dir -U pip && \
44- python -m pip install --no-cache-dir -r requirements/base.pip && \
45- python -m pip install --no-cache-dir -r requirements/s3.pip && \
46- python -m pip install --no-cache-dir -r requirements/ses.pip && \
47- python -m pip install --no-cache-dir -r requirements/azure.pip && \
48- python -m pip install --no-cache-dir pyyaml==6.0.3 uwsgitop==0.12 supervisor==4.2.5
44+ python -m pip install --no-cache-dir -r requirements/base.pip && \
45+ python -m pip install --no-cache-dir -r requirements/s3.pip && \
46+ python -m pip install --no-cache-dir -r requirements/ses.pip && \
47+ python -m pip install --no-cache-dir -r requirements/azure.pip && \
48+ python -m pip install --no-cache-dir pyyaml==6.0.3 uwsgitop==0.12 supervisor==4.3.0
4949
5050ARG INSTALL_DEV_DEPENDENCIES=false
5151RUN if [ "$INSTALL_DEV_DEPENDENCIES" = "true" ]; then \
52- python -m pip install --no-cache-dir -r requirements/dev.pip; \
53- fi
52+ python -m pip install --no-cache-dir -r requirements/dev.pip; \
53+ fi
5454
5555FROM base AS docs
5656
0 commit comments