Skip to content

Commit

Permalink
fix: docker image build
Browse files Browse the repository at this point in the history
  • Loading branch information
edeckers committed Aug 30, 2023
1 parent 4082c01 commit 3f3f723
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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="[email protected]" \
Expand Down

0 comments on commit 3f3f723

Please sign in to comment.