Added some space to container build output

This commit is contained in:
krateng 2023-05-21 02:25:55 +02:00
parent 50306990fb
commit 5d92857642

View File

@ -12,6 +12,7 @@ COPY --chown=abc:abc ./requirements.txt ./requirements.txt
# it may be possible to decrease image size slightly by using build stage and # it may be possible to decrease image size slightly by using build stage and
# copying all site-packages to runtime stage but the image is already pretty small # copying all site-packages to runtime stage but the image is already pretty small
RUN \ RUN \
echo "" && \
echo "**** install build packages ****" && \ echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-deps \ apk add --no-cache --virtual=build-deps \
gcc \ gcc \
@ -23,18 +24,22 @@ RUN \
libc-dev \ libc-dev \
py3-pip \ py3-pip \
linux-headers && \ linux-headers && \
echo "" && \
echo "**** install runtime packages ****" && \ echo "**** install runtime packages ****" && \
apk add --no-cache \ apk add --no-cache \
python3 \ python3 \
py3-lxml \ py3-lxml \
tzdata && \ tzdata && \
echo "" && \
echo "**** install pip dependencies ****" && \ echo "**** install pip dependencies ****" && \
python3 -m ensurepip && \ python3 -m ensurepip && \
pip3 install -U --no-cache-dir \ pip3 install -U --no-cache-dir \
pip \ pip \
wheel && \ wheel && \
echo "" && \
echo "**** install maloja requirements ****" && \ echo "**** install maloja requirements ****" && \
pip3 install --no-cache-dir -r requirements.txt && \ pip3 install --no-cache-dir -r requirements.txt && \
echo "" && \
echo "**** cleanup ****" && \ echo "**** cleanup ****" && \
apk del --purge \ apk del --purge \
build-deps && \ build-deps && \
@ -47,6 +52,7 @@ RUN \
COPY --chown=abc:abc . . COPY --chown=abc:abc . .
RUN \ RUN \
echo "" && \
echo "**** install maloja ****" && \ echo "**** install maloja ****" && \
apk add --no-cache --virtual=install-deps \ apk add --no-cache --virtual=install-deps \
py3-pip && \ py3-pip && \