Simon Cornet
0cb2665de3
All checks were successful
continuous-integration/drone/push Build is passing
23 lines
814 B
Docker
23 lines
814 B
Docker
FROM ubuntu:latest
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN set -e && ln -sf bash /bin/sh
|
|
RUN set -e \
|
|
&& apt -y update \
|
|
&& apt -y upgrade \
|
|
&& apt -y install --no-install-recommends --no-install-suggests ca-certificates git wget \
|
|
&& apt -y autoremove \
|
|
&& apt clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN set -e \
|
|
&& wget -q -O /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.105.0/hugo_0.105.0_linux-amd64.deb \
|
|
&& apt -y install /tmp/hugo.deb \
|
|
&& rm -f /tmp/hugo.deb
|
|
|
|
RUN set -e \
|
|
&& git clone https://git.simoncor.net/siempie/start.simoncor.net.git /site/
|
|
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/usr/local/bin/hugo", "server", "--baseUrl='start.simoncor.net'", "--bind='0.0.0.0'", "--contentDir='/site/'", "--port='8080'", "--theme='slate'"]
|