Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +0 -32
Dockerfile
CHANGED
@@ -10,38 +10,6 @@ RUN apt-get update \
|
|
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 |
-
RUN touch /.aim_profile
|
19 |
-
RUN chown 1000:1000 /aim /.aim_profile
|
20 |
-
RUN aim telemetry off
|
21 |
-
|
22 |
-
ENTRYPOINT ["/bin/sh", "-c"]
|
23 |
-
|
24 |
-
COPY aim_repo.tar.gz .
|
25 |
-
RUN tar xvzf aim_repo.tar.gz
|
26 |
-
# have to run `aim init` in the directory that stores aim data for
|
27 |
-
# otherwise `aim up` will prompt for confirmation to create the directory itself.
|
28 |
-
# We run aim listening on 0.0.0.0 to expose all ports. Also, we run
|
29 |
-
# using `--dev` to print verbose logs. Port 43800 is the default port of
|
30 |
-
# `aim up` but explicit is better than implicit.
|
31 |
-
CMD ["aim up --host 0.0.0.0 --port 7860 --workers 2"]
|
32 |
-
|
33 |
-
FROM ubuntu:kinetic
|
34 |
-
|
35 |
-
# Doesn't usually have an "upgrade"
|
36 |
-
RUN apt-get update \
|
37 |
-
&& DEBIAN_FRONTEND=noninteractive \
|
38 |
-
apt-get install --no-install-recommends --assume-yes \
|
39 |
-
build-essential \
|
40 |
-
python3 \
|
41 |
-
python3-dev \
|
42 |
-
python3-pip
|
43 |
-
|
44 |
-
|
45 |
RUN useradd -m -u 1000 aim_user
|
46 |
|
47 |
# Switch to the "aim_user" user
|
|
|
10 |
python3-pip
|
11 |
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
RUN useradd -m -u 1000 aim_user
|
14 |
|
15 |
# Switch to the "aim_user" user
|