File size: 375 Bytes
dbd06e6
5491d8f
dbd06e6
 
 
 
 
5491d8f
 
b751fa7
5491d8f
 
dbd06e6
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM node:22-alpine AS builder
WORKDIR /app

COPY package*.json ./

RUN npm ci --silent

COPY . .

ENV VITE_API_BASE_URL=https://aixamine.qcri.org/api/v1
ENV VITE_AMPLITUDE_API_KEY=default_key

RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 7860
CMD ["nginx", "-g", "daemon off;"]