This commit is contained in:
bjoernellens1 2023-11-30 09:52:27 +01:00 committed by GitHub
parent 291db5ea83
commit d5f41cbe45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,11 +100,13 @@ RUN dnf -y install dnf-plugins-core \
dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo \
dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# 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
@ -113,9 +115,6 @@ EXPOSE 1337/tcp
VOLUME /config
COPY OliveTin /usr/bin/OliveTin
COPY webui /var/www/olivetin/
USER olivetin
ENTRYPOINT [ "/usr/bin/OliveTin" ]