Spaces:
Sleeping
Sleeping
| # Secret Swap β Docker image | |
| # Uses lightweight Alpine Node base | |
| FROM node:20-alpine | |
| # Create app directory | |
| WORKDIR /app | |
| # Install production dependencies | |
| COPY package*.json ./ | |
| RUN npm install --omit=dev | |
| # Copy source | |
| COPY . . | |
| # Hugging Face exposes its own $PORT; default to 7860 for local runs | |
| ENV PORT=${PORT:-7860} | |
| EXPOSE 7860 | |
| # Launch the server | |
| CMD ["node", "server.js"] |