Commit 0564942f authored by nanahira's avatar nanahira

get frontend from minio

parent ad30ba14
Pipeline #456 passed with stages
in 9 minutes and 15 seconds
FROM node:buster-slim as frontend
RUN apt update && apt -y install python3 build-essential git && rm -rf /var/lib/apt/lists/*
RUN git clone --depth=1 https://code.mycard.moe/pani/gateway-selector-web /gateway-selector-web
WORKDIR /gateway-selector-web
RUN npm ci && \
npm run build
FROM node:buster-slim
RUN apt update && apt -y install python3 build-essential ipset && rm -rf /var/lib/apt/lists/*
RUN apt update && apt -y install python3 build-essential ipset wget && rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY ./package*.json ./
RUN npm ci
COPY . ./
RUN npm run build
COPY --from=frontend /gateway-selector-web/dist ./build/public
RUN npm run build && \
mkdir -p build/public && \
cd build/public && \
wget -O - https://cdn01.moecube.com/gateway-selector-web/gateway-selector-web.tar.gz | tar zxvf -
CMD ["npm", "run", "start"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment