Skip to content

Commit

Permalink
refactor: switch build and preview to use Vite
Browse files Browse the repository at this point in the history
  • Loading branch information
laurigates committed Aug 23, 2024
1 parent dbdf770 commit 8442b06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ WORKDIR /app

COPY . .
RUN npm install
RUN npm run build
RUN npx vite build
RUN npx vite optimize

EXPOSE 4173

CMD [ "npm", "run", "preview" ]
CMD [ "npx", "vite", "preview" ]

0 comments on commit 8442b06

Please sign in to comment.