homepage/Dockerfile
surtur 62095aa378
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
add: Dockerfile + update baseUrl
* also enhance footer partial that cries when a ref goes missing (such
  as when a branch is merged)
2020-10-03 16:40:36 +02:00

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