diff options
author | hyang <hyang@hyang.xyz> | 2023-09-10 14:54:18 -0700 |
---|---|---|
committer | hyang <hyang@hyang.xyz> | 2023-09-10 14:54:18 -0700 |
commit | d4309c6d1ade94c673c0cbfc56bf8bfb99157eda (patch) | |
tree | f2b85d9df4cf294498ae41e8beaea30c4264906a /Dockerfile | |
parent | 874fb5f68557965d245c5939a98c45a0c95125e0 (diff) |
rework docker
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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;' |