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.
26 lines
466 B
Docker
26 lines
466 B
Docker
FROM python:3.9-alpine
|
|
|
|
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" ]
|