fix dockerfle

This commit is contained in:
whidix
2022-12-31 16:56:18 +01:00
parent 5e2855d013
commit 36b32865f2
3 changed files with 3 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
FROM node:latest
WORKDIR /app
COPY . .
RUN npm install
RUN npm install && npm run build
EXPOSE 5173
CMD ["npm", "run", "dev"]
CMD ["npm", "run", "preview", "--host"]