Compare commits
No commits in common. "6a4ebf56c4fb18bc4976d7daa42456a1fdf83a1e" and "623bdd8d42306d95787449304622ea6a96c75cf9" have entirely different histories.
6a4ebf56c4
...
623bdd8d42
@ -1,17 +1,17 @@
|
|||||||
FROM node:18-alpine
|
FROM node:18-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json .
|
COPY package*.json ./
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
RUN npm i -g serve vite
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm install -D --force vite
|
||||||
|
RUN npm install -g live-server
|
||||||
|
|
||||||
RUN npm run rawbuild
|
RUN npm run rawbuild
|
||||||
|
EXPOSE 80
|
||||||
EXPOSE 3000
|
|
||||||
|
CMD ["npm", "start"]
|
||||||
CMD [ "serve", "-s", "dist" ]
|
|
@ -4,8 +4,9 @@
|
|||||||
"version": "1.3.7",
|
"version": "1.3.7",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"start": "cd dist && npx live-server --port=80 --entry-file=./index.html",
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"rawbuild": "vite build",
|
"rawbuild": "npx vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"build": "docker build --progress=plain -t simrailpro:frontend ."
|
"build": "docker build --progress=plain -t simrailpro:frontend ."
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user