添加 docker/Dockerfile
Some checks failed
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Has been cancelled
Cache Npx / task (push) Has been cancelled
Gitea Actions Demo / setup (push) Has been cancelled
Some checks failed
Gitea Actions Demo / test (push) Blocked by required conditions
Gitea Actions Demo / build (push) Blocked by required conditions
Gitea Actions Demo / build-docker (push) Has been cancelled
Cache Npx / task (push) Has been cancelled
Gitea Actions Demo / setup (push) Has been cancelled
This commit is contained in:
parent
8e37c423c1
commit
baf66dbea8
14
docker/Dockerfile
Normal file
14
docker/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user