Dockerfile 1.5 KB

1234567891011121314151617181920212223
  1. FROM ubuntu:20.10
  2. ENV SHELL=/bin/bash
  3. ENV TERM=xterm-256color
  4. ENV LANG=C.UTF-8
  5. ENV LC_TERMINAL=iTerm2
  6. ENV LC_TERMINAL_VERSION=3.4.4
  7. ENV SKIP_THIRDPARTY_INSTALL=1
  8. ARG DEBIAN_FRONTEND=noninteractive
  9. RUN set -x; apt update \
  10. && ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime \
  11. && apt install emacs gdb wget npm git build-essential curl unzip zip psmisc curl gnupg python3 pip iptables ycmd -y \
  12. && dpkg-reconfigure --frontend noninteractive tzdata \
  13. && apt install default-jre default-jdk clang rtags tmux clang-format shellcheck cmake autogen python-dev automake autoconf libtool jq -y \
  14. && curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg \
  15. && mv bazel.gpg /etc/apt/trusted.gpg.d/ \
  16. && echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
  17. && apt update && apt install bazel-3.7.2 -y \
  18. && pip3 install cython==0.29.26 pytest pandas tree tabulate pexpect sklearn joblib black==21.12b0 flake8==3.9.1 mypy==0.782 flake8-quotes flake8-bugbear==21.9.2 setproctitle==1.1.10 psutil yq \
  19. && python3 -c 'print("startup --output_base=/workspace/ray/.bazel-cache\nstartup --host_jvm_args=-Xmx1800m\nbuild --jobs=6")' > /etc/bazel.bazelrc
  20. RUN update-alternatives --install /usr/local/bin/python python /usr/bin/python3 30 \
  21. && update-alternatives --install /usr/bin/bazel bazel /usr/bin/bazel-3.7.2 30 \
  22. && echo "kernel.yama.ptrace_scope = 0" > /etc/sysctl.d/10-ptrace.conf