CoolFace
Apppublic

imajij/parallel-dashboard

sourceHugging Faceupdated 3mo agoView on Hugging Face
1likes
Dockerfile22 linesDownload Raw Back to root
1# --- build the React client ---2FROM node:22-alpine AS client3WORKDIR /app/client4COPY client/package*.json ./5RUN npm ci6COPY client/ ./7RUN npm run build8 9# --- server runtime (serves the built client too) ---10FROM node:22-alpine11WORKDIR /app/server12COPY server/package*.json ./13RUN npm ci --omit=dev14COPY server/ ./15# server looks for the client build at ../../client/dist (from server/src)16COPY --from=client /app/client/dist /app/client/dist17 18# HF Spaces expects the app on 7860; PORT is read by the server.19ENV PORT=7860 NODE_ENV=production20EXPOSE 786021CMD ["node", "src/index.js"]22