start.simoncor.net/Dockerfile.linux.amd64

24 lines
831 B
Docker
Raw Normal View History

2022-11-01 13:03:03 +01:00
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/
2022-11-01 14:44:43 +01:00
EXPOSE 80
2022-11-01 13:51:03 +01:00
ENTRYPOINT ["/usr/local/bin/hugo", "server"]
2022-11-01 14:51:51 +01:00
CMD ["--appendPort=false", "--baseUrl=https://start.simoncor.net", "--bind=0.0.0.0", "--port=80", "--source=/site/", "--theme=slate"]