rahul5035 commited on
Commit
7e0c4f1
1 Parent(s): b43db57

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -7,24 +7,24 @@ USER aim_user
7
 
8
  # Set home to the user's home directory
9
  ENV HOME=/home/aim_user \
10
- PATH=/home/aim_user/.local/bin:$PATH
11
 
12
  # Set the working directory to the user's home directory
13
  WORKDIR $HOME
14
 
15
- # install the `aim` package on the latest version
16
  RUN pip install aim
17
 
18
- RUN aim telemetry off
 
19
 
20
  ENTRYPOINT ["/bin/sh", "-c"]
21
 
22
  COPY aim_repo.tar.gz .
23
  RUN tar xvzf aim_repo.tar.gz
24
- # have to run `aim init` in the directory that stores aim data for
25
- # otherwise `aim up` will prompt for confirmation to create the directory itself.
26
- # We run aim listening on 0.0.0.0 to expose all ports. Also, we run
27
- # using `--dev` to print verbose logs. Port 43800 is the default port of
28
- # `aim up` but explicit is better than implicit.
29
- CMD ["aim up --host 0.0.0.0 --port 7860 --workers 2"]
30
 
 
 
 
 
 
 
7
 
8
  # Set home to the user's home directory
9
  ENV HOME=/home/aim_user \
10
+ PATH=/home/aim_user/.local/bin:$PATH
11
 
12
  # Set the working directory to the user's home directory
13
  WORKDIR $HOME
14
 
15
+ # Install the `aim` package on the latest version
16
  RUN pip install aim
17
 
18
+ # Disable telemetry using environment variable
19
+ ENV AIM_TELEMETRY_ENABLED=false
20
 
21
  ENTRYPOINT ["/bin/sh", "-c"]
22
 
23
  COPY aim_repo.tar.gz .
24
  RUN tar xvzf aim_repo.tar.gz
 
 
 
 
 
 
25
 
26
+ # Initialize Aim in the directory that stores aim data
27
+ RUN aim init
28
+
29
+ # Run Aim listening on 0.0.0.0 to expose all ports
30
+ CMD ["aim up --host 0.0.0.0 --port 7860 --workers 2"]