Spaces:
Runtime error
Runtime error
Commit
·
0479bd7
1
Parent(s):
2cd84cf
did we get the most basic?
Browse files- Dockerfile +12 -2
- README.md +7 -0
- assets/script/test.sh +3 -0
Dockerfile
CHANGED
|
@@ -1,5 +1,15 @@
|
|
| 1 |
FROM alpine:latest
|
| 2 |
|
| 3 |
-
RUN echo "HELLO, WORLD"
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM alpine:latest
|
| 2 |
|
|
|
|
| 3 |
|
| 4 |
+
# https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
|
| 5 |
+
RUN adduser -D -u 1000 sleepbotzz
|
| 6 |
+
USER sleepbotzz
|
| 7 |
+
ENV \
|
| 8 |
+
HOME=/home/sleepbotzz \
|
| 9 |
+
PATH=/home/sleepbotzz/.local/bin:$PATH
|
| 10 |
+
|
| 11 |
+
WORKDIR $HOME/app
|
| 12 |
+
COPY --chown=sleepbotzz assets assets
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
ENTRYPOINT [ "/home/sleepbotzz/app/assets/script/test.sh" ]
|
README.md
CHANGED
|
@@ -9,3 +9,10 @@ license: cc
|
|
| 9 |
---
|
| 10 |
|
| 11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 12 |
+
|
| 13 |
+
## Notes To myself
|
| 14 |
+
|
| 15 |
+
```bash
|
| 16 |
+
docker build . cantremember/hf:latest
|
| 17 |
+
|
| 18 |
+
```
|
assets/script/test.sh
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
echo IT WORKED
|