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
RUN npm install
RUN npm install --dev vite
RUN npm install -g live-server
RUN npm run rawbuild
COPY . . COPY . .
RUN yarn add -D vite
RUN yarn global add live-server
RUN yarn rawbuild
EXPOSE 80 EXPOSE 80
WORKDIR /app/dist
CMD ["yarn", "start"] CMD ["npm", "start"]