Update Dockerfile
Browse files6 unmodified lines7891011121314151617181920212223242526272829306 unmodified lines# Set home to the user's home directoryENV HOME=/home/aim_user \PATH=/home/aim_user/.local/bin:$PATH# Set the working directory to the user's home directoryWORKDIR $HOME# install the `aim` package on the latest versionRUN pip install aimRUN aim telemetry offENTRYPOINT ["/bin/sh", "-c"]COPY aim_repo.tar.gz .RUN tar xvzf aim_repo.tar.gz# have to run `aim init` in the directory that stores aim data for# otherwise `aim up` will prompt for confirmation to create the directory itself.# We run aim listening on 0.0.0.0 to expose all ports. Also, we run# using `--dev` to print verbose logs. Port 43800 is the default port of# `aim up` but explicit is better than implicit.CMD ["aim up --host 0.0.0.0 --port 7860 --workers 2"]6 unmodified lines7891011121314151617181920212223242526272829306 unmodified lines# Set home to the user's home directoryENV HOME=/home/aim_user \PATH=/home/aim_user/.local/bin:$PATH# Set the working directory to the user's home directoryWORKDIR $HOME# Install the `aim` package on the latest versionRUN pip install aim# Disable telemetry using environment variableENV AIM_TELEMETRY_ENABLED=falseENTRYPOINT ["/bin/sh", "-c"]COPY aim_repo.tar.gz .RUN tar xvzf aim_repo.tar.gz# Initialize Aim in the directory that stores aim dataRUN aim init# Run Aim listening on 0.0.0.0 to expose all portsCMD ["aim up --host 0.0.0.0 --port 7860 --workers 2"]
Dockerfile+9-9