From 2426f373a5c03b7e75844f07184bd06ffc2776cb Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 24 Jan 2021 14:18:00 +0100 Subject: [PATCH] chore: define a FROM alias * while this setup works we're following best practices --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e88d835..4dc60c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM immawanderer/fedora-hugo:latest +FROM immawanderer/fedora-hugo:latest AS hugobuild RUN mkdir -pv /homepage COPY . /homepage @@ -12,7 +12,7 @@ RUN hugo --minify --gc=true WORKDIR / FROM nginx:mainline-alpine -COPY --from=0 /homepage/public/ /usr/share/nginx/html +COPY --from=hugobuild /homepage/public/ /usr/share/nginx/html # tripple slash reference # https://stackoverflow.com/questions/5190966/using-sed-to-insert-tabs/5191165#5191165