use adapternode
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -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
|
||||
Reference in New Issue
Block a user