mirror of
https://github.com/pi-farm/Docker-PXE-Server.git
synced 2025-12-10 02:08:26 +00:00
shrink dockerfile
This commit is contained in:
26
dockerfile
26
dockerfile
@@ -1,31 +1,13 @@
|
||||
FROM debian:11-slim
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get autoremove -y
|
||||
RUN apt-get install unzip fdisk util-linux nano xz-utils wget systemctl sudo git tcpdump -y
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get autoremove -y && apt-get install unzip fdisk util-linux nano xz-utils wget systemctl sudo git tcpdump -y
|
||||
ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.6.0/s6-overlay-noarch.tar.xz /tmp
|
||||
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
|
||||
|
||||
#ARG arch
|
||||
RUN if [ "$(arch)" = "x86_64" ] ; then wget -O /tmp/s6-overlay-i686.tar.xz https://github.com/just-containers/s6-overlay/releases/download/v3.1.6.0/s6-overlay-i686.tar.xz ; fi;
|
||||
RUN if [ "$(arch)" = "x86_64" ] ; then tar -C / -Jxpf /tmp/s6-overlay-i686.tar.xz ; fi;
|
||||
RUN wget -O /tmp/s6-overlay-aarch64.tar.xz https://github.com/just-containers/s6-overlay/releases/download/v3.1.6.0/s6-overlay-aarch64.tar.xz
|
||||
RUN if [ "$(arch)" = "aarch64" ] ; then wget -O /tmp/s6-overlay-aarch64.tar.xz https://github.com/just-containers/s6-overlay/releases/download/v3.1.6.0/s6-overlay-aarch64.tar.xz ; fi;
|
||||
RUN if [ "$(arch)" = "aarch64" ] ; then tar -C / -Jxpf /tmp/s6-overlay-aarch64.tar.xz ; fi;
|
||||
RUN tar -C / -Jxpf /tmp/s6-overlay-aarch64.tar.xz
|
||||
|
||||
RUN mkdir /app
|
||||
RUN mkdir /app/RPi-PXE-Server
|
||||
|
||||
ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.6.0/s6-overlay-aarch64.tar.xz /tmp
|
||||
RUN tar -C / -Jxpf /tmp/s6-overlay-aarch64.tar.xz && tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz && mkdir /app && mkdir /app/RPi-PXE-Server
|
||||
COPY root/ /
|
||||
|
||||
VOLUME /app/RPi-PXE-Server
|
||||
VOLUME /srv
|
||||
VOLUME /etc/samba
|
||||
VOLUME /boot
|
||||
|
||||
RUN rm -rf /temp/*
|
||||
|
||||
RUN rm -rf /temp/* && rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /app/RPi-PXE-Server
|
||||
|
||||
ENTRYPOINT [ "/init" ]
|
||||
|
||||
Reference in New Issue
Block a user