Spaces:
Paused
Paused
File size: 555 Bytes
d045542 a64b63f | 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 | FROM node:22-bullseye
# Create app directory
WORKDIR /app
# Install app dependencies
COPY package*.json ./
RUN npm install
# Copy prisma schema and generate client
COPY prisma ./prisma/
RUN npx prisma generate
# Copy source code
COPY . .
# Hugging Face Spaces routes traffic to port 7860
EXPOSE 7860
ENV PORT=7860
# Add environment variables here or in the Hugging Face Space settings
# ENV JWT_SECRET=your_jwt_secret
# ENV DATABASE_URL=file:./dev.db
# ENV FRONTEND_URL=https://your-frontend-domain.com
# Start the application
CMD ["npm", "start"]
|