Snaplocal / Dockerfile
Kuruva Laxmi
Remove build-time Mongo caching since HF blocks it, rely on runtime startup
e8b7d44
Raw
History Blame Contribute Delete
525 Bytes
FROM node:22
# Set working directory
WORKDIR /app
# Copy package.json files for both workspaces
COPY client/package*.json ./client/
COPY server/package*.json ./server/
# Install dependencies for both
RUN cd client && npm install
RUN cd server && npm install
# Copy source code
COPY client/ ./client/
COPY server/ ./server/
# Build client
RUN cd client && npm run build
# Change working directory to server for execution
WORKDIR /app/server
# Hugging face runs on 7860
ENV PORT=7860
EXPOSE 7860
CMD ["npm", "start"]