Cleanup and rebuild image

This commit is contained in:
Daniel Berteaud 2024-01-13 14:42:18 +01:00
parent a2232aa0b7
commit a8b37d3240
2 changed files with 4 additions and 5 deletions

View File

@ -2,9 +2,8 @@ FROM [[ .docker.repo ]][[ .docker.base_images.alma9.image ]]
MAINTAINER [[ .docker.maintainer ]]
RUN set -eux &&\
microdnf -y --best --nodocs --noplugins --setopt=install_weak_deps=0 update &&\
rpm -qa --qf "%{NAME}\n" | sort > /tmp/before.txt &&\
microdnf -y --best --nodocs --noplugins --setopt=install_weak_deps=0 install git npm unzip &&\
dnf -y install git npm unzip &&\
rpm -qa --qf "%{NAME}\n" | sort > /tmp/after.txt &&\
curl -fsSL https://bun.sh/install | BUN_INSTALL=/usr/local bash &&\
cd /opt/ &&\
@ -12,8 +11,8 @@ RUN set -eux &&\
cd bgm &&\
bun install &&\
npm install sqlite3 --save &&\
microdnf remove -y $(comm -13 /tmp/before.txt /tmp/after.txt) &&\
microdnf clean all &&\
dnf -y remove $(comm -13 /tmp/before.txt /tmp/after.txt) &&\
dnf clean all &&\
rm -rf /var/cache/yum/* /var/log/yum/* /tmp/before.txt /tmp/after.txt /var/lib/dnf/history*
EXPOSE 8080

View File

@ -6,7 +6,7 @@ instance: boardgame-manager
bgm:
# Image to use
image: '[[ .docker.repo ]]boardgame-manager:latest'
image: '[[ .docker.repo ]]boardgame-manager:24.1-1'
# Resource allocation for the container
resources: