aiXamine-leaderboard / Dockerfile
fdeniz's picture
Nginx configuration added
dbd06e6
raw
history blame contribute delete
375 Bytes
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;"]