This commit is contained in:
Kroese 2023-04-20 18:53:37 +02:00 committed by GitHub
parent 0730e94c1c
commit 494d225e2e

View file

@ -3,12 +3,14 @@ FROM debian:bookworm-20230411-slim
RUN apt-get update && apt-get -y upgrade && \ RUN apt-get update && apt-get -y upgrade && \
apt-get --no-install-recommends -y install \ apt-get --no-install-recommends -y install \
wget \ wget \
dnsmasq \
iptables \ iptables \
iproute2 \ iproute2 \
dnsmasq \
net-tools \
bridge-utils \ bridge-utils \
netcat-openbsd \
ca-certificates \ ca-certificates \
isc-dhcp-client \
netcat-openbsd \
qemu-system-x86 \ qemu-system-x86 \
&& apt-get clean && apt-get clean
@ -19,15 +21,15 @@ VOLUME /storage
EXPOSE 22 EXPOSE 22
ENV CPU_CORES 1 ENV ALLOCATE "Y"
ENV DISK_SIZE 16G ENV CPU_CORES "1"
ENV RAM_SIZE 512M ENV DISK_SIZE "16G"
ENV RAM_SIZE "512M"
ENV BOOT "http://www.example.com/image.iso"
ARG BUILD_ARG=0 ARG BUILD_ARG=0
ARG VERSION_ARG="0.0" ARG VERSION_ARG="0.0"
ENV BUILD=$BUILD_ARG ENV BUILD=$BUILD_ARG
ENV VERSION=$VERSION_ARG ENV VERSION=$VERSION_ARG
ENV BOOT http://www.example.com/image.iso
ENTRYPOINT ["/run/run.sh"] ENTRYPOINT ["/run/run.sh"]