Dockerfile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. FROM --platform=linux/amd64 registry.fedoraproject.org/fedora-minimal:40-x86_64 AS olivetin-tmputils
  2. RUN microdnf -y install dnf-plugins-core && \
  3. dnf-3 config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo && \
  4. microdnf install -y docker-ce-cli docker-compose-plugin && microdnf clean all
  5. FROM --platform=linux/amd64 registry.fedoraproject.org/fedora-minimal:40-x86_64
  6. LABEL org.opencontainers.image.source https://github.com/OliveTin/OliveTin
  7. LABEL org.opencontainers.image.title OliveTin
  8. RUN mkdir -p /config /config/entities/ /var/www/olivetin \
  9. && \
  10. microdnf install -y --nodocs --noplugins --setopt=keepcache=0 --setopt=install_weak_deps=0 \
  11. iputils \
  12. openssh-clients \
  13. shadow-utils \
  14. apprise \
  15. jq \
  16. git \
  17. && microdnf clean all
  18. COPY --from=olivetin-tmputils \
  19. /usr/bin/docker \
  20. /usr/bin/docker
  21. COPY --from=olivetin-tmputils \
  22. /usr/libexec/docker/cli-plugins/docker-compose \
  23. /usr/libexec/docker/cli-plugins/docker-compose
  24. RUN useradd --system --create-home olivetin -u 1000
  25. EXPOSE 1337/tcp
  26. COPY config.yaml /config
  27. COPY var/entities/* /config/entities/
  28. VOLUME /config
  29. COPY OliveTin /usr/bin/OliveTin
  30. COPY webui /var/www/olivetin/
  31. COPY var/helper-actions/* /usr/bin/
  32. USER olivetin
  33. ENTRYPOINT [ "/usr/bin/OliveTin" ]