This commit is contained in:
bjoernellens1 2023-11-30 10:55:31 +01:00 committed by GitHub
parent e285df9940
commit f62247fd4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,35 +91,36 @@ LABEL org.opencontainers.image.source=https://github.com/bjoernellens1/cps_loki
#############################################
# OliveTin Build #
#############################################
FROM registry.fedoraproject.org/fedora:39 AS olivetin
# FROM registry.fedoraproject.org/fedora:39 AS olivetin
LABEL org.opencontainers.image.source https://ghcr.io/bjoernellens1/cps_bot_mini_ws/olivetin
LABEL org.opencontainers.image.title=OliveTin
# LABEL org.opencontainers.image.source https://ghcr.io/bjoernellens1/cps_bot_mini_ws/olivetin
# LABEL org.opencontainers.image.title=OliveTin
# Making sure there is newest docker version installed
RUN dnf -y install dnf-plugins-core \
&& dnf -y install 'dnf-command(config-manager)' \
&& dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo \
&& dnf -y install docker-ce-cli docker-compose-plugin --setopt=install_weak_deps=False
# # Making sure there is newest docker version installed
# RUN dnf -y install dnf-plugins-core \
# && dnf -y install 'dnf-command(config-manager)' \
# && dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo \
# && dnf -y install docker-ce-cli docker-compose-plugin --setopt=install_weak_deps=False
# Install OliveTin and dependencies
RUN mkdir -p /config /var/www/olivetin \
&& dnf install -y --nodocs --noplugins --setopt=keepcache=0 --setopt=install_weak_deps=0 \
iputils \
openssh-clients \
shadow-utils \
OliveTin \
&& dnf clean all
# # Install OliveTin and dependencies
# RUN mkdir -p /config /var/www/olivetin \
# && dnf install -y --nodocs --noplugins --setopt=keepcache=0 --setopt=install_weak_deps=0 \
# iputils \
# openssh-clients \
# shadow-utils \
# OliveTin \
# && dnf clean all
RUN useradd --system --create-home olivetin -u 1000
# RUN useradd --system --create-home olivetin -u 1000
EXPOSE 1337/tcp
# EXPOSE 1337/tcp
VOLUME /config
# VOLUME /config
USER olivetin
ENTRYPOINT [ "/usr/bin/OliveTin" ]
# USER olivetin
# ENTRYPOINT [ "/usr/bin/OliveTin" ]
FROM jamesread/olivetin AS olivetin
RUN microdnf -y install docker-compose-plugin