Spaces:
Running
Running
Download Dockerfile from digitalbanking/app: direct link, hf CLI and curl.
- Browser
- Download file 527 Bytes
-
https://huggingface.co/spaces/digitalbanking/app/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/digitalbanking/app/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/digitalbanking/app/resolve/main/Dockerfile
527 Bytes
| FROM node:18-alpine | |
| # Install git | |
| RUN apk add --no-cache git | |
| # Clone repo | |
| RUN git clone https://github.com/buildwithace/digitalbanking /app | |
| # Set working directory | |
| WORKDIR /app | |
| # Create data directory with correct permissions | |
| RUN mkdir -p /app/data && \ | |
| chown -R node:node /app/data && \ | |
| chmod -R 755 /app/data | |
| # Install dependencies | |
| RUN npm install | |
| # Switch to non-root user (important for security) | |
| USER node | |
| # Environment variables | |
| ENV PORT=7860 | |
| ENV NODE_ENV=production | |
| EXPOSE 7860 | |
| CMD ["node", "server.js"] |