using alpine node image; 1GB > 223MB
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
FROM node:10
|
# node:12-slim?
|
||||||
|
FROM node:12-alpine
|
||||||
|
|
||||||
|
|
||||||
# set user
|
# set user
|
||||||
#RUN groupadd -r nodejs && useradd -m -r -g -s /bin/bash nodejs nodejs
|
#RUN groupadd -r nodejs && useradd -m -r -g -s /bin/bash nodejs nodejs
|
||||||
@@ -7,7 +9,8 @@ FROM node:10
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm ci --only=production
|
||||||
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user