ocer-cc-old/Dockerfile
2024-02-25 17:00:22 +08:00

13 lines
249 B
Docker

FROM node:latest
RUN apt-get update \
&& apt-get install -y nginx \
&& git clone https://gitea.ocer.cc/overcast404/ocer-cc.git \
&& cd /ocer-cc \
&& npm install
CMD cd /ocer-cc \
&& git pull \
&& npm run build
CMD ["nginx", "-g", "daemon off;"]