1 FROM ubuntu:20.04 as ubuntu_focal
3 LABEL Description="ubuntu intermediate image"
9 ENV ISO_FOCAL_AMD64 https://releases.ubuntu.com/20.04.2/ubuntu-20.04.2-live-server-amd64.iso
10 ENV ISO_FOCAL_ARM64 https://cdimage.ubuntu.com/releases/20.04/release/ubuntu-20.04.2-live-server-arm64.iso
12 RUN echo "Preparing ISO Pre-cache" \
13 && wget $ISO_FOCAL_AMD64 -O /ubuntu-20.04.2-live-server-amd64.iso \
14 && wget $ISO_FOCAL_ARM64 -O /ubuntu-20.04.2-live-server-arm64.iso
17 FROM nginx:stable-alpine
19 LABEL Description="nginx service image"
22 ENV NGINX_FOCAL_AMD64 /usr/share/nginx/html/ubuntu_focal_amd64/
23 ENV NGINX_FOCAL_ARM64 /usr/share/nginx/html/ubuntu_focal_arm64/
25 RUN mkdir -p $NGINX_FOCAL_AMD64 \
26 && mkdir -p $NGINX_FOCAL_ARM64
28 COPY --from=ubuntu_focal /ubuntu-20.04.2-live-server-amd64.iso $NGINX_FOCAL_AMD64/ubuntu-20.04.2-live-server-amd64.iso
29 COPY --from=ubuntu_focal /ubuntu-20.04.2-live-server-arm64.iso $NGINX_FOCAL_ARM64/ubuntu-20.04.2-live-server-arm64.iso
31 COPY html/ /usr/share/nginx/html/