You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amcrest2mqtt/Dockerfile

26 lines
475 B
Docker

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" ]