GOTTo11/cvsa
0
1FROM python:3.92 3RUN useradd -m -u 1000 aim_user4 5# Switch to the "aim_user" user6USER aim_user7 8# Set home to the user's home directory9ENV HOME=/home/aim_user \10 PATH=/home/aim_user/.local/bin:$PATH11 12# Set the working directory to the user's home directory13WORKDIR $HOME14 15# install the `aim` package on the latest version16RUN pip install aim17 18RUN aim telemetry off19 20ENTRYPOINT ["/bin/sh", "-c"]21 22COPY aim_repo.tar.gz .23RUN tar xvzf aim_repo.tar.gz24# have to run `aim init` in the directory that stores aim data for25# 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 run27# using `--dev` to print verbose logs. Port 43800 is the default port of28# `aim up` but explicit is better than implicit.29CMD ["aim up --host 0.0.0.0 --port 7860 --workers 2"]30 31 