Commit 75cf926c authored by nanahira's avatar nanahira

add dumb init

parent 42ea89c0
Pipeline #3302 passed with stages
in 4 minutes and 3 seconds
FROM node:buster FROM node:buster-slim
LABEL Author="Nanahira <nanahira@momobako.com>" LABEL Author="Nanahira <nanahira@momobako.com>"
RUN apt-get update \ RUN apt-get update \
...@@ -6,7 +6,7 @@ RUN apt-get update \ ...@@ -6,7 +6,7 @@ RUN apt-get update \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \ && apt-get update \
&& apt-get install -y python3 build-essential google-chrome-stable fonts-ipafont-gothic fonts-wqy-microhei fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \ && apt-get install -y python3 build-essential google-chrome-stable fonts-ipafont-gothic fonts-wqy-microhei fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 dumb-init \
--no-install-recommends \ --no-install-recommends \
&& rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* && rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
...@@ -17,4 +17,5 @@ RUN npm ci && \ ...@@ -17,4 +17,5 @@ RUN npm ci && \
COPY . ./ COPY . ./
RUN npm run build RUN npm run build
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["npm", "run", "start:prod"] CMD ["npm", "run", "start:prod"]
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