summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorhyang <hyang@hyang.xyz>2023-09-10 14:54:18 -0700
committerhyang <hyang@hyang.xyz>2023-09-10 14:54:18 -0700
commitd4309c6d1ade94c673c0cbfc56bf8bfb99157eda (patch)
treef2b85d9df4cf294498ae41e8beaea30c4264906a /Dockerfile
parent874fb5f68557965d245c5939a98c45a0c95125e0 (diff)
rework docker
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;'