Skip to content

Commit

Permalink
Bump Python version
Browse files Browse the repository at this point in the history
Bumping versions for better platform / architecture support.

Disabling installation of libraries in preparation for v5.
  • Loading branch information
felddy committed Nov 25, 2024
1 parent 757a118 commit 47880ae
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# syntax=docker/dockerfile:1

ARG PYTHON_VERSION=3.11.2
ARG PYTHON_VERSION=3.13.0
ARG WEEWX_UID=421
ARG WEEWX_VERSION=4.10.2
ARG WEEWX_HOME="/home/weewx"

FROM --platform=$BUILDPLATFORM tonistiigi/xx AS xx

FROM --platform=$BUILDPLATFORM python:${PYTHON_VERSION} as build-stage
FROM --platform=$BUILDPLATFORM python:${PYTHON_VERSION} AS build-stage

ARG WEEWX_VERSION
ARG ARCHIVE="weewx-${WEEWX_VERSION}.tar.gz"
Expand Down Expand Up @@ -49,11 +49,11 @@ RUN pip install --no-cache --requirement requirements.txt

WORKDIR /root

RUN bin/wee_extension --install /tmp/weewx-mqtt.zip
RUN bin/wee_extension --install /tmp/weewx-interceptor.zip
# RUN bin/wee_extension --install /tmp/weewx-mqtt.zip
# RUN bin/wee_extension --install /tmp/weewx-interceptor.zip
COPY src/entrypoint.sh src/_version.py ./

FROM python:${PYTHON_VERSION}-slim as final-stage
FROM python:${PYTHON_VERSION}-slim AS final-stage

ARG TARGETPLATFORM
ARG WEEWX_HOME
Expand All @@ -65,7 +65,6 @@ ARG WEEWX_UID
# Note: Additional labels are added by the build workflow.
LABEL org.opencontainers.image.authors="[email protected]"
LABEL org.opencontainers.image.vendor="Geekpad"
LABEL com.weewx.version=${WEEWX_VERSION}

RUN addgroup --system --gid ${WEEWX_UID} weewx \
&& adduser --system --uid ${WEEWX_UID} --ingroup weewx weewx
Expand Down

0 comments on commit 47880ae

Please sign in to comment.