Regalamiunsorriso/faceai/docker/Dockerfile
MaddoScientisto a95ae56134
All checks were successful
Publish FaceAI Container / publish (push) Successful in 13m8s
feat(monitor-frontend): add FaceAI Audit Monitor application with Vue.js and Vite setup
- Created App.vue for the main application interface with localization support.
- Added main.js to bootstrap the Vue application.
- Introduced styles.css for application styling.
- Configured Vite for development and proxying API requests.
- Updated docker-compose files to include the new monitor service.
- Added Dockerfile for building the monitor frontend.
- Configured Nginx for serving the frontend and proxying API requests.
- Updated package.json and package-lock.json to include monitor-frontend workspace.
- Added initial SQLite database for audit monitoring.
2026-05-20 18:57:20 +02:00

36 lines
No EOL
838 B
Docker

FROM node:22-trixie-slim AS build
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends libxcb1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY faceai/package.json ./package.json
COPY faceai/apps/frontend/package.json apps/frontend/package.json
COPY faceai/apps/monitor-frontend/package.json apps/monitor-frontend/package.json
COPY faceai/apps/backend/package.json apps/backend/package.json
COPY faceai/apps/processor/package.json apps/processor/package.json
RUN npm install
COPY faceai/ .
RUN npm run build
FROM node:22-trixie-slim AS runtime
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends libxcb1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=build /app /app
ENV NODE_ENV=production
EXPOSE 3001
CMD ["npm", "run", "start"]