Spaces:
Sleeping
Sleeping
File size: 525 Bytes
a79d1fb 8d9c185 e8b7d44 689b232 8d9c185 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 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"]
|