Hritik R commited on
Commit
38f09ce
·
unverified ·
1 Parent(s): 8fabdff

Add Dockerfile

Browse files
Files changed (3) hide show
  1. .gitignore +1 -0
  2. DockerFile +14 -0
  3. README.md +1 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .DS_Store
DockerFile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18
2
+
3
+ USER node
4
+
5
+ RUN --mount=type=secret,id=GIT_REPO,mode=0444,required=true \
6
+ git clone $(cat /run/secrets/GIT_REPO)
7
+
8
+ WORKDIR /rewards
9
+
10
+ RUN npm install
11
+
12
+ RUN npm run build
13
+
14
+ RUN npm start
README.md CHANGED
@@ -5,6 +5,7 @@ colorFrom: red
5
  colorTo: pink
6
  sdk: docker
7
  pinned: false
 
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
5
  colorTo: pink
6
  sdk: docker
7
  pinned: false
8
+ short_description: Rewards Server
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference