surtur
62095aa378
* also enhance footer partial that cries when a ref goes missing (such as when a branch is merged)
16 lines
282 B
Docker
16 lines
282 B
Docker
FROM immawanderer/fedora-hugo:latest
|
|
RUN mkdir -pv /homepage
|
|
COPY . /homepage
|
|
|
|
WORKDIR /homepage
|
|
|
|
RUN git submodule init \
|
|
&& git submodule update --recursive \
|
|
&& hugo version
|
|
RUN hugo --minify --gc=true
|
|
|
|
WORKDIR /
|
|
|
|
FROM nginx
|
|
COPY --from=0 /homepage/public/ /usr/share/nginx/html
|