Explorar el Código

using node slim container to reduce container size

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang hace 1 año
padre
commit
6caf54d607
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -1,5 +1,5 @@
 # => Building container
-FROM node:18 as builder
+FROM node:18-slim as builder
 WORKDIR /app
 COPY . .
 
@@ -15,7 +15,7 @@ ENV PORT 80
 RUN yarn build
 
 # => Copy to Final container
-FROM node:18
+FROM node:18-slim
 WORKDIR /app
 COPY --from=builder /app/server/dist /app/dist
 COPY --from=builder /app/client/build /app/build