Skip to content

Commit

Permalink
Merge pull request #19 from ForumViriumHelsinki/update_dockerfile
Browse files Browse the repository at this point in the history
refactor: switch build and preview to use Vite
  • Loading branch information
laurigates authored Aug 23, 2024
2 parents 7617323 + 8442b06 commit bb019f5
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 bb019f5

Please sign in to comment.