Compare commits

..

2 Commits

2 changed files with 11 additions and 12 deletions
packages/frontend

@ -2,16 +2,16 @@ FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
COPY package.json .
RUN npm install
RUN npm i -g serve vite
COPY . .
RUN npm install -D --force vite
RUN npm install -g live-server
RUN npm run rawbuild
EXPOSE 80
CMD ["npm", "start"]
EXPOSE 3000
CMD [ "serve", "-s", "dist" ]

@ -4,9 +4,8 @@
"version": "1.3.7",
"type": "module",
"scripts": {
"start": "cd dist && npx live-server --port=80 --entry-file=./index.html",
"dev": "vite",
"rawbuild": "npx vite build",
"rawbuild": "vite build",
"preview": "vite preview",
"build": "docker build --progress=plain -t simrailpro:frontend ."
},