dixiebone13-a11y
LGI v1.2: Beam Search Visualizer - Vite+React+Tailwind, all 11 audit fixes
005f181
raw
history blame contribute delete
510 Bytes
FROM node:20-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 7860
COPY <<'EOF' /etc/nginx/nginx.conf
worker_processes auto;
events { worker_connections 1024; }
http {
include /etc/nginx/mime.types;
server {
listen 7860;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
}
EOF
CMD ["nginx", "-g", "daemon off;"]