1
0
mirror of synced 2026-03-09 12:03:39 +00:00
Files
amcrest2mqtt/Dockerfile
2021-12-30 23:05:09 +00:00

18 lines
357 B
Docker

FROM python:3.9-alpine as base
FROM base as builder
RUN mkdir /install
WORKDIR /install
COPY requirements.txt /
RUN pip install --no-warn-script-location --prefix=/install -r /requirements.txt
FROM base
STOPSIGNAL SIGINT
COPY --from=builder /install /usr/local
COPY src /app
COPY VERSION /app
WORKDIR /app
CMD [ "python", "-u", "/app/amcrest2mqtt.py" ]