/
Dockerfile_arm
56 lines (44 loc) · 1.53 KB
/
Dockerfile_arm
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
FROM continuumio/miniconda3
# FROM --platform=linux/amd64 continuumio/miniconda3
MAINTAINER Brando Miranda "brandojazz@gmail.com"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ssh \
git \
m4 \
libgmp-dev \
opam \
wget \
ca-certificates \
rsync \
strace \
gcc \
rlwrap \
sudo
RUN useradd -m bot
# format for chpasswd user_name:password
RUN echo "bot:bot" | chpasswd
RUN adduser bot sudo
WORKDIR /home/bot
USER bot
ADD https://api.github.com/repos/IBM/pycoq/git/refs/heads/main version.json
#
RUN pip3 install --upgrade pip
RUN pip install --upgrade pip
RUN pip install --upgrade pip setuptools wheel
# makes sure depedencies for pycoq are installed once already in the docker image
RUN pip install https://github.com/ddelange/psutil/releases/download/release-5.9.1/psutil-5.9.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
RUN pip install pip install pyzmq==23.2.1
ENV WANDB_API_KEY="SECRET"
RUN pip install wandb --upgrade
# makes sure deps to uutils are bre-built before starting image even if installing in editable mode layer
RUN pip install ultimate-utils
# then make sure editable mode is done to be able to use changing pycoq from system
RUN echo "pip install -e /home/bot/ultimate-utils" >> ~/.bashrc
RUN echo "pip install wandb --upgrade" >> ~/.bashrc
RUN echo "eval $(opam env)" >> ~/.bashrc
# - set env variable for bash terminal prompt p1 to be nicely colored
ENV force_color_prompt=yes
RUN mkdir -p /home/bot/data/
##RUN pytest --pyargs pycoq
##CMD /bin/bash