FROM lscr.io/linuxserver/code-server:latest
RUN apt-get update \
&& apt install -y npm \
&& apt install -y git \
&& npm install -g n \
&& n latest \
&& npm install -g yarn \
# docker build . -t ocer-world:3.1 --build-arg GITEAUSER= --build-arg GITEAPASS=
FROM node:latest
ARG GITEAUSER
ARG GITEAPASS
RUN npm install -g hexo-cli \
&& git clone https://$GITEAUSER:$GITEAPASS@gitea.ocer.cc/overcast404/ocer-world.git \
&& cd /ocer-world/land \
&& npm install
CMD cd ocer-world \
&& git pull \
&& cd land \
&& hexo clean \
&& hexo g \
&& hexo server -sp 5000
FROM golang:latest
RUN git clone https://gitea.ocer.cc/overcast404/imageAve.git \
&& cd imageAve \
&& go mod tidy
CMD go run /imageAve/api/img2color.go