alpine,ubuntu: trim down preinstalled packages
This commit is contained in:
parent
5db42d05ab
commit
2c8262a3a8
10
Dockerfile
10
Dockerfile
@ -1,14 +1,18 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
ARG DEBUG
|
||||||
|
ENV DEBUG=${DEBUG}
|
||||||
|
|
||||||
VOLUME /exports
|
VOLUME /exports
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
RUN mkdir -p /run/openrc
|
RUN mkdir -p /run/openrc
|
||||||
RUN touch /run/openrc/softlevel
|
RUN touch /run/openrc/softlevel
|
||||||
RUN apk add --no-cache --update openrc
|
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 syslog-ng boot
|
||||||
RUN rc-update add krb5kdc default
|
RUN rc-update add krb5kdc default
|
||||||
|
|||||||
@ -1,10 +1,16 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
ARG DEBUG
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
ENV DEBUG=${DEBUG}
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
RUN apt-get update
|
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 ./entrypoint-ubuntu.sh .
|
||||||
COPY ./init.sh .
|
COPY ./init.sh .
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user