alpine,ubuntu: trim down preinstalled packages

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-10-29 17:12:36 -04:00
parent 5db42d05ab
commit 2c8262a3a8
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
2 changed files with 14 additions and 4 deletions

View File

@ -1,14 +1,18 @@
FROM alpine:latest
ARG DEBUG
ENV DEBUG=${DEBUG}
VOLUME /exports
WORKDIR /root
RUN mkdir -p /run/openrc
RUN touch /run/openrc/softlevel
RUN apk add --no-cache --update openrc
RUN apk add --no-cache --update --verbose alpine-conf tzdata bash krb5-server nfs-utils iproute2 krb5-server-openrc procps krb5 syslog-ng chrony
RUN apk add --no-cache --update --verbose tzdata bash krb5-server nfs-utils krb5-server-openrc krb5 syslog-ng chrony
RUN if [ -n "${DEBUG}" ]; then \
apk add --no-cache --update iproute2 procps \
fi
RUN rc-update add syslog-ng boot
RUN rc-update add krb5kdc default

View File

@ -1,10 +1,16 @@
FROM ubuntu:latest
ARG DEBUG
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBUG=${DEBUG}
WORKDIR /root
RUN apt-get update
RUN apt-get install -y nfs-kernel-server krb5-kdc krb5-admin-server nfs-common bash iproute2 iputils-ping net-tools
RUN apt-get install -y nfs-kernel-server krb5-kdc krb5-admin-server nfs-common bash
RUN if [ -n "${DEBUG}" ]; then \
apt-get install iproute2 iputils-ping net-tools \
fi
COPY ./entrypoint-ubuntu.sh .
COPY ./init.sh .