Spaces:
Runtime error
Runtime error
Commit
·
f702133
1
Parent(s):
669f5a7
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,8 +3,37 @@ title: Aimstack
|
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: pink
|
| 6 |
-
sdk:
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: pink
|
| 6 |
+
sdk: static
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
## `./Dockerfile`
|
| 11 |
+
|
| 12 |
+
```dockerfile
|
| 13 |
+
FROM ubuntu:kinetic
|
| 14 |
+
|
| 15 |
+
# Doesn't usually have an "upgrade"
|
| 16 |
+
RUN apt-get update \
|
| 17 |
+
&& DEBIAN_FRONTEND=noninteractive \
|
| 18 |
+
apt-get install --no-install-recommends --assume-yes \
|
| 19 |
+
build-essential \
|
| 20 |
+
python3 \
|
| 21 |
+
python3-dev \
|
| 22 |
+
python3-pip
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
# install the `aim` package on the latest version
|
| 26 |
+
RUN pip install aim
|
| 27 |
+
|
| 28 |
+
# make a directory where the Aim repo will be initialized, `/aim`
|
| 29 |
+
RUN mkdir /aim
|
| 30 |
+
|
| 31 |
+
ENTRYPOINT ["/bin/sh", "-c"]
|
| 32 |
+
|
| 33 |
+
# have to run `aim init` in the directory that stores aim data for
|
| 34 |
+
# otherwise `aim up` will prompt for confirmation to create the directory itself.
|
| 35 |
+
# We run aim listening on 0.0.0.0 to expose all ports. Also, we run
|
| 36 |
+
# using `--dev` to print verbose logs. Port 43800 is the default port of
|
| 37 |
+
# `aim up` but explicit is better than implicit.
|
| 38 |
+
CMD ["echo \"N\" | aim init --repo /aim && aim up --host 0.0.0.0 --port 7860 --repo /aim"]
|
| 39 |
+
```
|