fix docker

This commit is contained in:
joBr99
2023-11-19 14:59:40 +01:00
parent a8be9a46c8
commit 264fef1142
4 changed files with 12 additions and 34 deletions

View File

@@ -2,27 +2,8 @@
ARG BUILD_FROM
FROM $BUILD_FROM
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Copy Python requirements file
COPY requirements.txt /tmp/
# Setup base
# hadolint ignore=DL3003,DL3042
RUN \
apk add --no-cache --virtual .build-dependencies \
build-base=0.5-r3 \
python3-dev=3.11.6-r0 \
\
&& apk add --no-cache \
py3-pip=23.1.2-r0 \
py3-wheel=0.40.0-r1 \
python3=3.11.6-r0 \
\
&& pip install -r /tmp/requirements.txt \
\
&& apk del --no-cache --purge .build-dependencies
COPY rootfs/usr/bin/mqtt-manager/requirements.txt /tmp/
RUN pip install -r /tmp/requirements.txt
# Copy root filesystem
COPY rootfs /