Browse Source

fix build

Signed-off-by: shanghaikid <jiangruiyi@gmail.com>
shanghaikid 2 years ago
parent
commit
7a6a8d4fd3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -1,5 +1,5 @@
 # => Building container
 # => Building container
-FROM node:14.19-alpine3.14 as builder
+FROM node:18-alpine 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:14.19-alpine3.14
+FROM node:18-alpine
 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