Spaces:
Runtime error
Runtime error
Commit
·
10e44cc
1
Parent(s):
c178b11
first full-fledged candidate
Browse files- Dockerfile +1 -2
- README.md +5 -11
- assets/bootstrap/anaconda.environment.yml +3 -0
- {linux → assets/linux}/sudoers-sleepbotzz +0 -0
- assets/script/entrypoint.sh +5 -0
Dockerfile
CHANGED
@@ -13,8 +13,7 @@ RUN set -ex && \
|
|
13 |
apt install -y sudo && \
|
14 |
apt-get clean
|
15 |
|
16 |
-
COPY linux/sudoers-sleepbotzz /etc/sudoers.d/sleepbotzz
|
17 |
-
RUN chmod 0440 /etc/sudoers.d/sleepbotzz
|
18 |
|
19 |
|
20 |
# User constraints
|
|
|
13 |
apt install -y sudo && \
|
14 |
apt-get clean
|
15 |
|
16 |
+
COPY --chmod=0440 assets/linux/sudoers-sleepbotzz /etc/sudoers.d/sleepbotzz
|
|
|
17 |
|
18 |
|
19 |
# User constraints
|
README.md
CHANGED
@@ -1,13 +1,14 @@
|
|
1 |
---
|
2 |
title: My First Docker
|
3 |
emoji: 🔮
|
4 |
-
models: []
|
5 |
datasets: []
|
6 |
-
preload_from_hub: []
|
7 |
colorFrom: purple
|
8 |
colorTo: purple
|
9 |
sdk: docker
|
10 |
app_port: 7860
|
|
|
11 |
# sdk_version
|
12 |
# python_version
|
13 |
pinned: false
|
@@ -20,15 +21,8 @@ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-
|
|
20 |
|
21 |
```bash
|
22 |
# vs. 'linux/arm64'
|
23 |
-
docker buildx build . -t cantremember/hf:latest \
|
24 |
--platform linux/amd64 \
|
25 |
--build-arg BUILD_USER_PASSWORD=___
|
26 |
-
docker run -it --platform linux/amd64 cantremember/hf:latest bash
|
27 |
```
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
docker buildx build . -t cantremember/hf:latest \
|
32 |
-
--platform linux/arm64 \
|
33 |
-
--build-arg BUILD_USER_PASSWORD=___
|
34 |
-
docker run -it --platform linux/arm64 cantremember/hf:latest bash
|
|
|
1 |
---
|
2 |
title: My First Docker
|
3 |
emoji: 🔮
|
4 |
+
models: ["Salesforce/blip-itm-base-coco"]
|
5 |
datasets: []
|
6 |
+
preload_from_hub: ["Salesforce/blip-itm-base-coco"]
|
7 |
colorFrom: purple
|
8 |
colorTo: purple
|
9 |
sdk: docker
|
10 |
app_port: 7860
|
11 |
+
startup_duration_timeout: 30m
|
12 |
# sdk_version
|
13 |
# python_version
|
14 |
pinned: false
|
|
|
21 |
|
22 |
```bash
|
23 |
# vs. 'linux/arm64'
|
24 |
+
docker buildx build . -t cantremember/hf-my-first-docker:latest \
|
25 |
--platform linux/amd64 \
|
26 |
--build-arg BUILD_USER_PASSWORD=___
|
27 |
+
docker run -it --platform linux/amd64 cantremember/hf-my-first-docker:latest bash
|
28 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/bootstrap/anaconda.environment.yml
CHANGED
@@ -12,6 +12,9 @@ dependencies:
|
|
12 |
- datasets
|
13 |
- evaluate
|
14 |
- accelerate
|
|
|
|
|
|
|
15 |
|
16 |
# .
|
17 |
# "install your preferred machine learning framework"
|
|
|
12 |
- datasets
|
13 |
- evaluate
|
14 |
- accelerate
|
15 |
+
# https://python-pillow.org/
|
16 |
+
# fork of PIL (Python Imaging Library)
|
17 |
+
- pillow
|
18 |
|
19 |
# .
|
20 |
# "install your preferred machine learning framework"
|
{linux → assets/linux}/sudoers-sleepbotzz
RENAMED
File without changes
|
assets/script/entrypoint.sh
CHANGED
@@ -3,4 +3,9 @@ ROOT=$(cd `dirname $0` && pwd)
|
|
3 |
|
4 |
set -e
|
5 |
|
|
|
|
|
|
|
|
|
|
|
6 |
python $ROOT/../main.py
|
|
|
3 |
|
4 |
set -e
|
5 |
|
6 |
+
eval "$(conda shell.bash hook)"
|
7 |
+
conda init
|
8 |
+
conda activate my-first-docker
|
9 |
+
|
10 |
+
|
11 |
python $ROOT/../main.py
|