action-demo/docker/Dockerfile
huanghs b29c9d5a7d
Some checks failed
Cache Npx / task (push) Successful in 34s
Gitea Actions Demo / setup (push) Failing after 53s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Gitea Actions Demo / build-docker (push) Successful in 35s
更新 docker/Dockerfile
2024-10-21 19:11:09 +08:00

16 lines
476 B
Docker

#FROM git.zgfxrc.cn/registry/nginx:1.25-alpine-slim
FROM nginx:1.25-alpine-slim
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
&& apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& apk del tzdata \
&& echo "*/30 * * * * ntpd -d -q -n -p ntp.aliyun.com" >> /etc/crontabs/root
ENV LISTEN_PORT=80\
SERVER_NAME=localhost\
PROXY_PASS=http://127.0.0.1
COPY ./dist /html
RUN chmod -R 755 /html