Hritik R
commited on
Add Dockerfile
Browse files- .gitignore +1 -0
- DockerFile +14 -0
- 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
|