Skip to content

Commit

Permalink
Just some updates to trigger a new build
Browse files Browse the repository at this point in the history
And some syntactic improvenments while I am at it.
  • Loading branch information
GaretJax committed Jul 25, 2023
1 parent c061261 commit 540a8f7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
6 changes: 6 additions & 0 deletions py3.11-slim-bookworm/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ Changelog
=========


1.1 (2023-07-25)
----------------

* Update base system.


1.0 (2023-07-04)
----------------

Expand Down
22 changes: 14 additions & 8 deletions py3.11-slim-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ FROM python:3.11.4-slim-bookworm AS build

ARG TARGET=prod
ARG TARGETARCH
ARG TINI_VERSION=0.19.0
ARG PIP_VERSION=23.1.2
ARG PIPREQS_VERSION=0.11.0
ARG START_VERSION=0.2

ENV PYTHONUNBUFFERED=1 \
PATH=/root/.local/bin:$PATH \
Expand Down Expand Up @@ -69,21 +73,23 @@ RUN if [ "$TARGET" = "dev" ] ; then apt-get install -y --no-install-recommends \
RUN ln -s -f /bin/true /usr/bin/chfn

# Install tini
RUN if [ "$TARGETARCH" = "arm64" ] ; then curl -L --show-error --retry 5 -o /tini https://github.com/krallin/tini/releases/download/v0.18.0/tini-arm64 \
; else curl -L --show-error --retry 5 -o /tini https://github.com/krallin/tini/releases/download/v0.18.0/tini \
; fi
RUN if [ "$TARGETARCH" = "arm64" ] ; then \
curl -L --show-error --retry 5 -o /tini https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-arm64 ; \
else \
curl -L --show-error --retry 5 -o /tini https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini ; \
fi
RUN chmod +x /tini

# Python environment setup
RUN pip install --no-cache-dir pip==23.1.2
RUN pip install --no-cache-dir pip-reqs==0.11.0
RUN pip install --no-cache-dir start==0.2
RUN pip install --no-cache-dir pip==${PIP_VERSION}
RUN pip install --no-cache-dir pip-reqs==${PIPREQS_VERSION}
RUN pip install --no-cache-dir start==${START_VERSION}

# TODO: Avoid the need for pip-tools
# hadolint ignore=DL3013
RUN if [ "$TARGET" = "dev" ] ; then \
pip install --no-cache-dir pip-tools flit flit-core setuptools-scm poetry auditwheel \
; fi
pip install --no-cache-dir pip-tools flit flit-core setuptools-scm poetry auditwheel ; \
fi

COPY add_addons_dev_to_syspath.py /usr/local/lib/python3.11/site-packages/add_addons_dev_to_syspath.py
RUN echo 'import add_addons_dev_to_syspath' >/usr/local/lib/python3.11/site-packages/add_addons_dev_to_syspath.pth
Expand Down

0 comments on commit 540a8f7

Please sign in to comment.