This commit is contained in:
bjoernellens1 2023-11-30 09:47:57 +01:00 committed by GitHub
parent b004c2c32e
commit 291db5ea83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 2 deletions

View File

@ -135,7 +135,17 @@ services:
config:
container_name: olivetin
image: jamesread/olivetin
image: ghcr.io/bjoernellens1/cps_bot_mini_ws/olivetin
build:
context: .
dockerfile: docker/Dockerfile
tags:
- ghcr.io/bjoernellens1/cps_bot_mini_ws/olivetin
target: olivetin
x-bake:
platforms:
- linux/arm64
- linux/amd64
user: root
volumes:
- ./config/olivetin.yaml:/config/config.yaml # replace host path or volume as needed

View File

@ -86,3 +86,39 @@ RUN source /bot_mini_ws/install/setup.bash \
ENTRYPOINT [ "/entrypoint.sh" ]
LABEL org.opencontainers.image.source=https://github.com/bjoernellens1/cps_loki
#############################################
# OliveTin Build #
#############################################
FROM registry.fedoraproject.org/fedora-minimal:39 AS olivetin
LABEL org.opencontainers.image.source https://github.com/OliveTin/OliveTin
LABEL org.opencontainers.image.title=OliveTin
# Making sure there is newest docker version installed
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
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 \
&& dnf clean all
RUN useradd --system --create-home olivetin -u 1000
EXPOSE 1337/tcp
VOLUME /config
COPY OliveTin /usr/bin/OliveTin
COPY webui /var/www/olivetin/
USER olivetin
ENTRYPOINT [ "/usr/bin/OliveTin" ]