Add Container build
This commit is contained in:
committed by
Greg Hellings
parent
f4bf1c5569
commit
2556cba4e5
@@ -0,0 +1,10 @@
|
||||
FROM fedora:latest AS build
|
||||
|
||||
RUN dnf install -y hugo
|
||||
RUN mkdir /build
|
||||
WORKDIR /build
|
||||
COPY . /build/
|
||||
RUN hugo -v
|
||||
|
||||
FROM nginx:latest
|
||||
COPY --from=build /build/public/ /usr/share/nginx/html/
|
||||
Reference in New Issue
Block a user