chore: define a FROM alias
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
* while this setup works we're following best practices
This commit is contained in:
parent
d529a0fc14
commit
2426f373a5
@ -1,4 +1,4 @@
|
|||||||
FROM immawanderer/fedora-hugo:latest
|
FROM immawanderer/fedora-hugo:latest AS hugobuild
|
||||||
RUN mkdir -pv /homepage
|
RUN mkdir -pv /homepage
|
||||||
COPY . /homepage
|
COPY . /homepage
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ RUN hugo --minify --gc=true
|
|||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
FROM nginx:mainline-alpine
|
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
|
# tripple slash reference
|
||||||
# https://stackoverflow.com/questions/5190966/using-sed-to-insert-tabs/5191165#5191165
|
# https://stackoverflow.com/questions/5190966/using-sed-to-insert-tabs/5191165#5191165
|
||||||
|
Loading…
Reference in New Issue
Block a user