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