Spaces:
Runtime error
Runtime error
Download Dockerfile from fullstuckdev/sql-agent: direct link, hf CLI and curl.
- Browser
- Download file 629 Bytes
-
https://huggingface.co/spaces/fullstuckdev/sql-agent/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/fullstuckdev/sql-agent/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/fullstuckdev/sql-agent/resolve/main/Dockerfile
629 Bytes
| FROM node:18-slim | |
| # Install required system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Change node user ID to match host user ID | |
| RUN usermod -u 1000 node | |
| ARG HF_TOKEN | |
| ENV API_TOKEN=$HF_TOKEN | |
| # Set working directory and ownership | |
| WORKDIR /app | |
| RUN chown -R node:node /app | |
| # Switch to node user | |
| USER node | |
| # Copy package files | |
| COPY --chown=node:node package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy the rest of the application | |
| COPY --chown=node:node . . | |
| # Build the Next.js application | |
| RUN npm run build | |
| EXPOSE 3001 | |
| CMD ["npm", "start"] |