FROM python:3.14.0a5-alpine3.21 RUN python3 -m ensurepip # Upgrade pip and setuptools RUN pip3 install --upgrade pip setuptools WORKDIR /usr/src/app COPY requirements.txt ./ RUN pip3 install --no-cache-dir --upgrade -r requirements.txt RUN pip3 check COPY . . ARG USER_ID=1000 ARG GROUP_ID=1000 RUN addgroup -g $GROUP_ID appuser && \ adduser -u $USER_ID -G appuser --disabled-password --gecos "" appuser USER appuser CMD [ "python", "-u", "./amcrest2mqtt.py" ]