File size: 400 Bytes
77ea953
 
 
 
9157033
77ea953
 
 
 
 
ae349ee
77ea953
 
 
ae349ee
77ea953
ae349ee
77ea953
ae349ee
77ea953
ae349ee
77ea953
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM node:22-alpine AS build

WORKDIR /app

COPY package.json yarn.lock ./

COPY .yarnrc.yml ./

RUN corepack enable

RUN yarn install --immutable

COPY . .

RUN chown -R node:node /app

USER node

ENV VITE_API_URL=https://sifars-keepme-backend.hf.space

ENV VITE_WS_URL=wss://sifars-keepme-backend.hf.space

RUN yarn build

EXPOSE 7860

CMD ["yarn", "preview", "--host", "0.0.0.0", "--port", "7860"]