mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-23 13:02:14 +01:00
fix docker
This commit is contained in:
@@ -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 /
|
||||
|
||||
Reference in New Issue
Block a user