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

15 lines
301 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 \
&& npm run build
CMD cd /ocer-cc \
&& git pull \
&& npm run build \
&& cp -rf /ocer-cc/dist/* /var/www/html \
&& nginx -g "daemon off;"