Spaces:
Build error
Build error
File size: 2,037 Bytes
a09a9bd 96dc40b 1552958 a09a9bd 8e6f2c0 a09a9bd 0cb5a38 ec105b7 |
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
FROM ubuntu:kinetic
# Doesn't usually have an "upgrade"
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install --no-install-recommends --assume-yes \
build-essential \
python3 \
python3-dev \
python3-pip
# install the `aim` package on the latest version
RUN pip install aim
# make a directory where the Aim repo will be initialized, `/aim`
RUN mkdir /aim
RUN touch /.aim_profile
RUN chown 1000:1000 /aim /.aim_profile
RUN aim telemetry off
ENTRYPOINT ["/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"]
FROM ubuntu:kinetic
# Doesn't usually have an "upgrade"
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install --no-install-recommends --assume-yes \
build-essential \
python3 \
python3-dev \
python3-pip
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
RUN aim telemetry off
ENTRYPOINT ["/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"]
|