fix(): fix nginx
Some checks failed
Build simrail.pro / build (push) Failing after 44s

This commit is contained in:
Aleksander Wilczyński 2025-03-04 15:43:51 +01:00
parent 922b7ea633
commit 85d18190a7
Signed by: alekswilc
GPG Key ID: D4464A248E5F27FE

View File

@ -1,12 +1,17 @@
FROM node:22-alpine FROM node:18-alpine
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN yarn
COPY . . RUN npm install
RUN yarn add -D vite RUN npm install --dev vite
RUN yarn global add live-server RUN npm install -g live-server
RUN yarn rawbuild
RUN npm run rawbuild
COPY . .
EXPOSE 80 EXPOSE 80
WORKDIR /app/dist
CMD ["yarn", "start"] CMD ["npm", "start"]