Spaces:
Sleeping
Sleeping
Download Dockerfile from z1amez/wallets-api: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/spaces/z1amez/wallets-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/z1amez/wallets-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/z1amez/wallets-api/resolve/main/Dockerfile
560 Bytes
| # .github/workflows/ sync_to_huggingface.yml | |
| # Dockerfile for Hugging Face Spaces (Root) | |
| FROM node:20-slim | |
| WORKDIR /app | |
| # Copy the workspace files | |
| COPY package*.json ./ | |
| COPY server/package*.json ./server/ | |
| # Install dependencies (including workspace dependencies) | |
| RUN npm install | |
| # Copy the rest of the code | |
| COPY . . | |
| # Set working directory to the server for execution | |
| WORKDIR /app/server | |
| # Expose port (HF Spaces uses 7860 by default) | |
| EXPOSE 7860 | |
| ENV PORT=7860 | |
| # Start command (using tsx from the root/server context) | |
| CMD ["npx", "tsx", "src/index.ts"] | |