4
0

Dockerfile.singlearch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. VOLUME /config
  30. COPY OliveTin /usr/bin/OliveTin
  31. COPY webui /var/www/olivetin/
  32. COPY var/helper-actions/* /usr/bin/
  33. USER olivetin
  34. ENTRYPOINT [ "/usr/bin/OliveTin" ]