use adapternode

This commit is contained in:
whidix
2022-12-31 17:39:07 +01:00
parent 36b32865f2
commit 128648693f
5 changed files with 229 additions and 7 deletions

View File

@@ -1,6 +1,12 @@
FROM node:latest
FROM node:latest AS build
WORKDIR /app
COPY . .
RUN npm install && npm run build
EXPOSE 5173
CMD ["npm", "run", "preview", "--host"]
COPY package.json ./
COPY package-lock.json ./
RUN npm install
COPY . ./
RUN npm run build
FROM nginx:latest
COPY --from=build /app/public /usr/share/nginx/html