Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 684 Bytes
FROM debian:stable-slim as build
ENV HUGO_VERSION 0.55.5
ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
ARG LOCAL=0
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update \
&& apt-get install -y \
wget=1.18-5+deb9u3 \
&& rm -rf /var/lib/apt/lists/*
RUN wget -qO- -SL https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} \
| tar -xzC /bin \
&& rm -f /bin/README.md /bin/LICENSE
COPY ./www /www
WORKDIR /www
RUN if [[ $LOCAL -eq 1 ]]; then \
/bin/hugo --baseUrl=http://igln.fr/; \
else \
/bin/hugo; \
fi
FROM nginx:1.15
COPY ./igln.conf /etc/nginx/conf.d
COPY --from=build /www/public /var/www
You can’t perform that action at this time.