dockerfile fixed

This commit is contained in:
pi-farm
2025-01-30 19:51:04 +01:00
parent a3a9ee5159
commit 06e51bfec6

View File

@@ -1,4 +1,4 @@
FROM ubuntu:20.10
FROM ubuntu:24.10
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
@@ -6,12 +6,13 @@ RUN apt-get install unzip fdisk util-linux nano xz-utils wget systemctl sudo git
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 if [ "$arch" = "arm64" ] ; 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" = "arm64" ] ; then tar -C / -Jxpf /tmp/s6-overlay-aarch64.tar.xz ; fi;
#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
@@ -27,4 +28,4 @@ RUN rm -rf /temp/*
WORKDIR /app/RPi-PXE-Server
ENTRYPOINT [ "/init" ]
ENTRYPOINT [ "/init" ]