aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra/pxe/docker-nginx/Dockerfile
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-07-13 08:42:42 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2023-07-13 09:23:55 +0000
commitefe51d995a9d736ce194dbd1c850d4a09e0a1506 (patch)
treeff3cf08ce37caaf9579a86d5b8ea558af9197980 /fdio.infra/pxe/docker-nginx/Dockerfile
parent192e1ac1f274d8eed3d33cdbc15fa995a74247c7 (diff)
feat(packer): Cleanup
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I947f0e349584c3688e207a910e0debfc87562af6
Diffstat (limited to 'fdio.infra/pxe/docker-nginx/Dockerfile')
-rw-r--r--fdio.infra/pxe/docker-nginx/Dockerfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/fdio.infra/pxe/docker-nginx/Dockerfile b/fdio.infra/pxe/docker-nginx/Dockerfile
new file mode 100644
index 0000000000..64872e7a10
--- /dev/null
+++ b/fdio.infra/pxe/docker-nginx/Dockerfile
@@ -0,0 +1,31 @@
+FROM ubuntu:22.04 as ubuntu_jammy
+
+LABEL Description="ubuntu intermediate image"
+LABEL Version="2.0"
+
+RUN apt update \
+ && apt install -y wget
+
+ENV ISO_JAMMY_AMD64 https://old-releases.ubuntu.com/releases/22.04.1/ubuntu-22.04.1-live-server-arm64.iso
+ENV ISO_JAMMY_ARM64 https://old-releases.ubuntu.com/releases/22.04.1/ubuntu-22.04.1-live-server-arm64.iso
+
+RUN echo "Preparing ISO Pre-cache" \
+ && wget $ISO_JAMMY_AMD64 -O /ubuntu-22.04.1-live-server-amd64.iso \
+ && wget $ISO_JAMMY_ARM64 -O /ubuntu-22.04.1-live-server-arm64.iso
+
+
+FROM nginx:stable-alpine
+
+LABEL Description="nginx service image"
+LABEL Version="2.0"
+
+ENV NGINX_JAMMY_AMD64 /usr/share/nginx/html/ubuntu_jammy_amd64/
+ENV NGINX_JAMMY_ARM64 /usr/share/nginx/html/ubuntu_jammy_arm64/
+
+RUN mkdir -p $NGINX_JAMMY_AMD64 \
+ && mkdir -p $NGINX_JAMMY_ARM64
+
+COPY --from=ubuntu_jammy /ubuntu-22.04.1-live-server-amd64.iso $NGINX_JAMMY_AMD64/ubuntu-22.04.1-live-server-amd64.iso
+COPY --from=ubuntu_jammy /ubuntu-22.04.1-live-server-arm64.iso $NGINX_JAMMY_ARM64/ubuntu-22.04.1-live-server-arm64.iso
+
+COPY html/ /usr/share/nginx/html/ \ No newline at end of file