From 3f3f72323f30375701b053560c402e9a6ec9b50a Mon Sep 17 00:00:00 2001 From: Ely Deckers Date: Wed, 30 Aug 2023 20:19:52 +0200 Subject: [PATCH] fix: docker image build --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ed32a23..269aeed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ # This source code is licensed under the MPL-2.0 license found in the # LICENSE file in the root directory of this source tree. -FROM python:3.8-alpine3.15 +FROM python:3.8-alpine3.18 ARG HUEMON_VERSION=1.0.3 @@ -17,7 +17,13 @@ COPY assets/docker/entrypoint.sh /sbin/entrypoint.sh RUN chmod +x /sbin/entrypoint.sh COPY dist/huemon-${HUEMON_VERSION}-py3-none-any.whl /tmp -RUN pip3 install /tmp/huemon-${HUEMON_VERSION}-py3-none-any.whl + +# Fixes "Cargo not installed" error: exact version is not important, as long as it +# includes the required musl wheels +# https://github.com/pydantic/pydantic/discussions/4230#discussioncomment-3163410 +RUN pip install pydantic==1.10.12 + +RUN pip install /tmp/huemon-${HUEMON_VERSION}-py3-none-any.whl LABEL \ maintainer="noreply@nonono.com" \