- Introduced a new workspace for FaceAI in package.json. - Implemented FaceAI handoff logic in faceai_handoff.php, including identity verification and token signing. - Created faceai_return.php to handle return requests from FaceAI, validating tokens and forwarding results. - Developed faceai_simulator.php and faceai_simulator_view.php for simulating the FaceAI interface with demo photos. - Enhanced rus-ecom-240621.js to support new FaceAI features, including dynamic URL building and button integration. - Added faceai_config.php for configuration management, including environment variable handling and utility functions. - Updated HTML structure and styles in simulator view for better user experience.
24 lines
No EOL
367 B
Docker
24 lines
No EOL
367 B
Docker
FROM node:20-alpine AS build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json ./
|
|
COPY apps/frontend/package.json apps/frontend/package.json
|
|
COPY apps/backend/package.json apps/backend/package.json
|
|
|
|
RUN npm install
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build
|
|
|
|
FROM node:20-alpine AS runtime
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /app /app
|
|
|
|
ENV NODE_ENV=production
|
|
EXPOSE 3001
|
|
|
|
CMD ["npm", "run", "start"] |