2 changed files with 23 additions and 10 deletions
@ -1,14 +1,13 @@
@@ -1,14 +1,13 @@
|
||||
FROM node:18.7.0 |
||||
FROM node:22.13.1-alpine AS build |
||||
|
||||
WORKDIR /app |
||||
|
||||
COPY package.json package.json |
||||
COPY yarn.lock yarn.lock |
||||
COPY package.json ./ |
||||
COPY package-lock.json ./ |
||||
RUN npm install |
||||
COPY . ./ |
||||
RUN npm run build |
||||
|
||||
RUN yarn |
||||
|
||||
COPY . . |
||||
|
||||
RUN yarn build |
||||
|
||||
CMD [ "yarn", "preview", "--host" ] |
||||
EXPOSE 80 |
||||
FROM nginx:1.19-alpine |
||||
COPY --from=build /app/build /usr/share/nginx/html |
||||
Loading…
Reference in new issue