chore: define a FROM alias (#26)
All checks were successful
continuous-integration/drone/push Build is passing

while the existing setup works, we're following best practices of aliasing a FROM layer 

Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #26
Co-authored-by: wanderer <wanderer@noreply.git.dotya.ml>
Co-committed-by: wanderer <wanderer@noreply.git.dotya.ml>
This commit is contained in:
wanderer 2021-01-24 16:15:28 +01:00
parent d529a0fc14
commit d6510fbd9b
Signed by: Gitea
GPG Key ID: 0DD13DBC6B5433D3

View File

@ -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