Files
prometheus-immich-exporter/Dockerfile
aaa e3ac1698ef -support for 1.1.0
-adapted for unraid
2024-06-19 00:52:08 +02:00

23 lines
663 B
Docker

FROM alpine:3.18.4
# Installing required packages
FROM alpine/doctl
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 py-pip gcc python3-dev musl-dev linux-headers && ln -sf python3 /usr/bin/python
#RUN python3 -m ensurepip
RUN pip3 install --break-system-packages --no-cache --upgrade pip setuptools
# Install package
WORKDIR /code
COPY . .
RUN pip3 install --break-system-packages .
ENV IMMICH_API_TOKEN="yourimmichtokenhere"
ENV IMMICH_HOST="host/ip"
ENV IMMICH_PORT="8080"
#has to be EXPORT_PORT 8000 or else it does not work, same applies to the env file
ENV EXPORTER_PORT="8000"
ENV EXPORTER_LOG_LEVEL="INFO"
ENTRYPOINT ["immich_exporter"]