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

RUN apk add --no-cache hugo git

WORKDIR /app

EXPOSE 1313/tcp

ENTRYPOINT (git clone "$REPO" . || git fetch && git reset --hard origin) && git submodule update --init --remote && hugo serve --baseURL "$BASE_URL" -p "$PORT" --bind '0.0.0.0' -e "$HUGO_ENV" --disableFastRender --disableLiveReload