Spaces:
Sleeping
Sleeping
Download server/Dockerfile from z1amez/wallets-api: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/spaces/z1amez/wallets-api/resolve/main/server/Dockerfile
- Command line
-
hf download hf://spaces/z1amez/wallets-api/server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/z1amez/wallets-api/resolve/main/server/Dockerfile
390 Bytes
| FROM node:20-slim | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy source code | |
| COPY . . | |
| # Build if necessary (not needed for tsx but good practice) | |
| # RUN npm run build | |
| # Expose port (HF Spaces uses 7860 by default) | |
| EXPOSE 7860 | |
| # Set environment variable for port | |
| ENV PORT=7860 | |
| # Start command | |
| CMD ["npx", "tsx", "src/index.ts"] | |