elonmuskceo commited on
Commit
833aeb1
1 Parent(s): 40467e9

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:kinetic
2
+
3
+ # Doesn't usually have an "upgrade"
4
+ RUN apt-get update \
5
+ && DEBIAN_FRONTEND=noninteractive \
6
+ apt-get install --no-install-recommends --assume-yes \
7
+ build-essential \
8
+ python3 \
9
+ python3-dev \
10
+ python3-pip
11
+
12
+
13
+ # install the `aim` package on the latest version
14
+ RUN pip install aim
15
+
16
+ # make a directory where the Aim repo will be initialized, `/aim`
17
+ RUN mkdir /aim
18
+
19
+ ENTRYPOINT ["/bin/sh", "-c"]
20
+
21
+ # have to run `aim init` in the directory that stores aim data for
22
+ # otherwise `aim up` will prompt for confirmation to create the directory itself.
23
+ # We run aim listening on 0.0.0.0 to expose all ports. Also, we run
24
+ # using `--dev` to print verbose logs. Port 43800 is the default port of
25
+ # `aim up` but explicit is better than implicit.
26
+ CMD ["echo \"N\" | aim init --repo /aim && aim up --host 0.0.0.0 --port 7860 --repo /aim"]