diff options
author | hyang <hyang@hyang.xyz> | 2023-09-10 15:51:01 -0700 |
---|---|---|
committer | hyang <hyang@hyang.xyz> | 2023-09-10 15:51:01 -0700 |
commit | 66cc87ca28f7325f5df2fd264127a3f5217b304c (patch) | |
tree | f58e5ea8afcf7a323a69fbddeaba802f6d16629d /Dockerfile | |
parent | d4309c6d1ade94c673c0cbfc56bf8bfb99157eda (diff) |
rework docker
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,6 +4,9 @@ RUN apk add --no-cache hugo git nginx openssh WORKDIR /app +COPY ./watch.sh / +COPY ./nginx-entrypoint.sh / + EXPOSE 8080/tcp -CMD git clone "$REPO" ./ && /bin/sh -c './watch.sh' && hugo && nginx -g 'daemon off;' +ENTRYPOINT git clone "$REPO" . && git submodule update --init && /bin/sh -c '/watch.sh &' ls && hugo && /nginx-entrypoint.sh && nginx -g 'daemon off;' |