summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 3 insertions, 7 deletions
diff --git a/Dockerfile b/Dockerfile
index dcbe409..223dccc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,13 +1,9 @@
FROM alpine:latest
-RUN apk add --no-cache hugo git
-
-COPY . /app
+RUN apk add --no-cache hugo git nginx openssh
WORKDIR /app
-RUN ./watch.sh &
-
-EXPOSE 443/tcp
+EXPOSE 8080/tcp
-ENTRYPOINT /bin/sh -c './watch.sh' && hugo serve --baseURL "$BASE_URL" -p "$PORT" --bind '0.0.0.0' -e "$HUGO_ENV" --disableFastRender --disableLiveReload
+CMD git clone "$REPO" ./ && /bin/sh -c './watch.sh' && hugo && nginx -g 'daemon off;'