2023-03-14 18:42:15 +01:00
|
|
|
FROM alpine:3.16.4
|
2020-09-29 11:54:26 +02:00
|
|
|
|
|
|
|
# Installing required packages
|
2023-03-14 18:42:15 +01:00
|
|
|
FROM alpine/doctl
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
|
|
|
|
RUN python3 -m ensurepip
|
|
|
|
RUN pip3 install --no-cache --upgrade pip setuptools
|
2020-09-29 11:54:26 +02:00
|
|
|
|
|
|
|
# Install package
|
2020-10-24 10:39:40 +02:00
|
|
|
WORKDIR /code
|
|
|
|
COPY . .
|
|
|
|
RUN pip3 install .
|
2020-09-29 11:54:26 +02:00
|
|
|
|
2023-03-14 18:41:23 +01:00
|
|
|
ENV IMMICH_API_TOKEN=""
|
|
|
|
ENV IMMICH_HOST=""
|
|
|
|
ENV IMMICH_PORT=""
|
2020-09-29 11:54:26 +02:00
|
|
|
ENV QBITTORRENT_HOST=""
|
|
|
|
ENV QBITTORRENT_PORT=""
|
|
|
|
ENV QBITTORRENT_USER=""
|
|
|
|
ENV QBITTORRENT_PASS=""
|
2023-03-14 18:41:23 +01:00
|
|
|
#has to be EXPORT_PORT 8000 or else it does not work, same applies to the env file
|
2020-09-29 11:54:26 +02:00
|
|
|
ENV EXPORTER_PORT="8000"
|
|
|
|
ENV EXPORTER_LOG_LEVEL="INFO"
|
|
|
|
|
|
|
|
ENTRYPOINT ["qbittorrent-exporter"]
|