Skip to content

Commit

Permalink
feat: use vite preview instead of nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan committed Aug 13, 2023
1 parent a847255 commit ebc3b5b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine as build
FROM node:lts-alpine

ARG VITE_SUBNET_REGISTRATOR_CONTRACT_ADDRESS
ARG VITE_TOPOS_CORE_CONTRACT_ADDRESS
Expand All @@ -13,12 +13,4 @@ COPY . ./

RUN npm run build

FROM nginx:alpine AS prod

WORKDIR /usr/share/nginx/html

COPY --from=build /usr/src/app/dist .

EXPOSE 80

ENTRYPOINT ["nginx", "-g", "daemon off;"]
CMD npm run preview -- --port 80 --host 0.0.0.0

0 comments on commit ebc3b5b

Please sign in to comment.