|
1 | | -FROM nvidia/cuda:13.1.1-cudnn-devel-ubuntu24.04 |
| 1 | +FROM quay.io/pypa/manylinux_2_28_x86_64 |
2 | 2 |
|
3 | 3 | ARG DEBIAN_FRONTEND=noninteractive |
4 | 4 | ARG HOME=/root |
5 | | -ENV PYENV_ROOT=$HOME/.pyenv |
6 | | -ENV PATH=$HOME/go/bin:$HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH |
| 5 | +ENV PATH=$HOME/go/bin:$PATH |
7 | 6 | ENV USE_BAZEL_VERSION=8.6.0 |
8 | 7 |
|
9 | 8 | WORKDIR $HOME |
10 | 9 |
|
11 | | -RUN apt-get update \ |
12 | | - && apt-get install -y git curl wget zsh gcc g++ build-essential make tmux \ |
13 | | - python3-pip python3-dev python-is-python3 golang-go \ |
14 | | - swig zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev libncurses-dev libffi-dev liblzma-dev \ |
15 | | - llvm xz-utils tk-dev libxml2-dev libxmlsec1-dev libssl-dev qtbase5-dev qtdeclarative5-dev \ |
16 | | - && rm -rf /var/lib/apt/lists/* |
17 | | -RUN ln -sf /usr/include/x86_64-linux-gnu/qt5 /usr/include/qt |
18 | | -RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
19 | | -WORKDIR $HOME |
20 | | -RUN git clone https://github.com/gpakosz/.tmux.git |
21 | | -RUN ln -s -f .tmux/.tmux.conf |
22 | | -RUN cp .tmux/.tmux.conf.local . |
23 | | -RUN echo "set-option -g default-shell /bin/zsh" >> .tmux.conf.local |
24 | | -RUN echo "set-option -g history-limit 10000" >> .tmux.conf.local |
25 | | - |
26 | | -RUN curl https://pyenv.run | sh |
| 10 | +RUN dnf install -y \ |
| 11 | + git curl wget zsh gcc gcc-c++ make tmux golang java-17-openjdk-devel \ |
| 12 | + qt5-qtbase-devel qt5-qtdeclarative-devel \ |
| 13 | + && dnf clean all |
| 14 | +RUN ln -sf "$(qmake-qt5 -query QT_INSTALL_HEADERS)" /usr/include/qt |
27 | 15 |
|
28 | 16 | RUN go install github.com/bazelbuild/bazelisk@latest && ln -sf $HOME/go/bin/bazelisk $HOME/go/bin/bazel |
29 | 17 |
|
30 | 18 | RUN bazel version |
31 | 19 |
|
32 | | -# install python |
33 | | - |
34 | | -RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> /etc/profile |
35 | | -RUN echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> /etc/profile |
36 | | -RUN echo 'eval "$(pyenv init -)"' >> /etc/profile |
37 | | - |
38 | | -RUN pyenv install -v 3.11-dev |
39 | | -RUN pyenv install -v 3.12-dev |
40 | | -RUN pyenv install -v 3.13-dev |
41 | | - |
42 | 20 | WORKDIR /__w/envpool/envpool |
43 | 21 | COPY . . |
44 | 22 |
|
45 | 23 | # cache bazel build (cpp only) |
46 | 24 |
|
47 | | -RUN bazel build //envpool/utils:image_process_test --config=release |
48 | | -RUN bazel build //envpool/vizdoom/bin:vizdoom_bin --config=release |
| 25 | +RUN PATH=/opt/python/cp311-cp311/bin:$PATH bazel build //envpool/utils:image_process_test --config=release |
| 26 | +RUN PATH=/opt/python/cp311-cp311/bin:$PATH bazel build //envpool/vizdoom/bin:vizdoom_bin --config=release |
49 | 27 |
|
50 | 28 | WORKDIR /app |
0 commit comments