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