z1amez commited on
Commit
a4c1c44
·
1 Parent(s): c9034e3
.github/workflows/sync_to_huggingface.yml CHANGED
@@ -4,6 +4,7 @@ on:
4
  branches: [main]
5
  force_push:
6
  branches: [main]
 
7
 
8
  jobs:
9
  sync:
@@ -16,4 +17,4 @@ jobs:
16
  - name: Push to hub
17
  env:
18
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
- run: git push --force https://z1amez:$HF_TOKEN@huggingface.co/spaces/z1amez/wallets-api main
 
4
  branches: [main]
5
  force_push:
6
  branches: [main]
7
+ workflow_dispatch:
8
 
9
  jobs:
10
  sync:
 
17
  - name: Push to hub
18
  env:
19
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
+ run: git push --force https://z1amez:$HF_TOKEN@huggingface.co/spaces/z1amez/wallets-api main:main
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # .github/workflows/ sync_to_huggingface.yml
2
+ # Dockerfile for Hugging Face Spaces (Root)
3
+ FROM node:20-slim
4
+
5
+ WORKDIR /app
6
+
7
+ # Copy the workspace files
8
+ COPY package*.json ./
9
+ COPY server/package*.json ./server/
10
+
11
+ # Install dependencies (including workspace dependencies)
12
+ RUN npm install
13
+
14
+ # Copy the rest of the code
15
+ COPY . .
16
+
17
+ # Set working directory to the server for execution
18
+ WORKDIR /app/server
19
+
20
+ # Expose port (HF Spaces uses 7860 by default)
21
+ EXPOSE 7860
22
+ ENV PORT=7860
23
+
24
+ # Start command (using tsx from the root/server context)
25
+ CMD ["npx", "tsx", "src/index.ts"]