13 lines
249 B
Docker
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;"] |