summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: ce397472d88ba47fafd8e11be626879db779f86c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
FROM alpine:latest

RUN apk add --no-cache hugo git nginx openssh

WORKDIR /app

COPY ./watch.sh /
COPY ./nginx-entrypoint.sh /

EXPOSE 8080/tcp

ENTRYPOINT git clone "$REPO" . ; git submodule update --init && /bin/sh -c '/watch.sh &' ls && hugo && /nginx-entrypoint.sh && nginx -g 'daemon off;'