Compare commits

..

No commits in common. "6a4ebf56c4fb18bc4976d7daa42456a1fdf83a1e" and "623bdd8d42306d95787449304622ea6a96c75cf9" have entirely different histories.

2 changed files with 12 additions and 11 deletions

View File

@ -1,17 +1,17 @@
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 3000
CMD [ "serve", "-s", "dist" ]
EXPOSE 80
CMD ["npm", "start"]

View File

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