File size: 668 Bytes
b8fc1e8
 
 
 
 
 
 
 
 
7e0c4f1
b8fc1e8
 
 
 
7e0c4f1
b8fc1e8
 
7e0c4f1
 
b8fc1e8
 
 
 
 
 
9c6e2c4
 
7e0c4f1
 
 
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
FROM python:3.9

RUN useradd -m -u 1000 aim_user

# Switch to the "aim_user" user
USER aim_user

# Set home to the user's home directory
ENV HOME=/home/aim_user \
    PATH=/home/aim_user/.local/bin:$PATH

# Set the working directory to the user's home directory
WORKDIR $HOME

# Install the `aim` package on the latest version
RUN pip install aim

# Disable telemetry using environment variable
ENV AIM_TELEMETRY_ENABLED=false

ENTRYPOINT ["/bin/sh", "-c"]

COPY aim_repo.tar.gz .
RUN tar xvzf aim_repo.tar.gz

# Initialize Aim without prompt
RUN aim init --yes

# Run Aim listening on 0.0.0.0 to expose all ports
CMD ["aim up --host 0.0.0.0 --port 7860 --workers 2"]