Commit 7e7a4f2a authored by 神楽坂玲奈's avatar 神楽坂玲奈

alpine

parent ee029707
Pipeline #1138 passed with stages
in 5 minutes and 37 seconds
FROM node:buster-slim
RUN apt update && apt -y install python3 build-essential ipset wget && rm -rf /var/lib/apt/lists/*
FROM node:buster as builder
#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 && \
mkdir -p build/public && \
cd build/public && \
wget -O - https://cdn01.moecube.com/gateway-selector-web/gateway-selector-web.tar.gz | tar zxf -
wget -O - https://cdn01.moecube.com/gateway-selector-web/gateway-selector-web.tar.gz | tar zxf - -C build/public
FROM node:alpine
RUN apk add --no-cache ipset
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app .
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