mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-01-02 01:07:28 -08:00
29 lines
639 B
Docker
29 lines
639 B
Docker
FROM ghcr.io/tautulli/tautulli-baseimage:python3
|
|
|
|
LABEL maintainer="Tautulli"
|
|
|
|
ARG BRANCH
|
|
ARG COMMIT
|
|
|
|
ENV TAUTULLI_DOCKER=True
|
|
ENV TZ=UTC
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
RUN \
|
|
groupadd -g 1000 tautulli && \
|
|
useradd -u 1000 -g 1000 tautulli && \
|
|
echo ${BRANCH} > /app/branch.txt && \
|
|
echo ${COMMIT} > /app/version.txt
|
|
|
|
RUN \
|
|
mkdir /config && \
|
|
touch /config/DOCKER
|
|
VOLUME /config
|
|
|
|
CMD [ "python", "Tautulli.py", "--datadir", "/config" ]
|
|
ENTRYPOINT [ "./start.sh" ]
|
|
|
|
EXPOSE 8181
|
|
HEALTHCHECK --start-period=90s CMD curl -ILfSs http://localhost:8181/status > /dev/null || curl -ILfkSs https://localhost:8181/status > /dev/null || exit 1
|