Mahnerak commited on
Commit
a09a9bd
1 Parent(s): 4f961b5

Add Dockerfile from space

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -0
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ RUN chown 1000:1000 /aim
20
+
21
+ ENTRYPOINT ["/bin/sh", "-c"]
22
+
23
+ # have to run `aim init` in the directory that stores aim data for
24
+ # otherwise `aim up` will prompt for confirmation to create the directory itself.
25
+ # We run aim listening on 0.0.0.0 to expose all ports. Also, we run
26
+ # using `--dev` to print verbose logs. Port 43800 is the default port of
27
+ # `aim up` but explicit is better than implicit.
28
+ CMD ["echo \"N\" | aim init --repo /aim && aim up --host 0.0.0.0 --port 7860 --repo /aim"]