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

alpine

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