4
0

Dockerfile.singlearch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. FROM --platform=linux/amd64 registry.fedoraproject.org/fedora-minimal:44-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:44-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. kubernetes-client \
  14. shadow-utils \
  15. apprise \
  16. jq \
  17. git \
  18. && microdnf clean all
  19. COPY --from=olivetin-tmputils \
  20. /usr/bin/docker \
  21. /usr/bin/docker
  22. COPY --from=olivetin-tmputils \
  23. /usr/libexec/docker/cli-plugins/docker-compose \
  24. /usr/libexec/docker/cli-plugins/docker-compose
  25. RUN useradd --system --create-home olivetin -u 1000
  26. EXPOSE 1337/tcp
  27. COPY config.yaml /config
  28. COPY var/entities/* /config/entities/
  29. COPY examples/backupScript.sh /opt/backupScript.sh
  30. RUN chmod 755 /opt/backupScript.sh
  31. VOLUME /config
  32. COPY OliveTin /usr/bin/OliveTin
  33. COPY webui /var/www/olivetin/
  34. COPY var/helper-actions/* /usr/bin/
  35. USER olivetin
  36. ENTRYPOINT [ "/usr/bin/OliveTin" ]