1
- FROM almalinux:9.4-minimal
1
+ FROM almalinux:9.4
2
2
3
3
LABEL maintainer="appthreat" \
4
4
org.opencontainers.image.authors="Team AppThreat <cloud@appthreat.com>" \
5
5
org.opencontainers.image.source="https://github.com/appthreat/chen" \
6
6
org.opencontainers.image.url="https://github.com/appthreat/chen" \
7
- org.opencontainers.image.version="2.2 .x" \
7
+ org.opencontainers.image.version="2.3 .x" \
8
8
org.opencontainers.image.vendor="appthreat" \
9
9
org.opencontainers.image.licenses="Apache-2.0" \
10
10
org.opencontainers.image.title="chen" \
@@ -32,8 +32,11 @@ ENV JAVA_VERSION=$JAVA_VERSION \
32
32
CHEN_INSTALL_DIR=/opt/workspace \
33
33
PHP_PARSER_BIN=/opt/vendor/bin/php-parse \
34
34
CDXGEN_NO_BANNER=true \
35
- COMPOSER_ALLOW_SUPERUSER=1
36
- ENV PATH=/opt/miniconda3/bin:${PATH}:/opt/platform:${JAVA_HOME}/bin:${MAVEN_HOME}/bin:${GRADLE_HOME}/bin:/usr/local/bin/:/root/.local/bin:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:
35
+ COMPOSER_ALLOW_SUPERUSER=1 \
36
+ MALLOC_CONF="dirty_decay_ms:2000,narenas:2,background_thread:true" \
37
+ RUBY_CONFIGURE_OPTS="--with-jemalloc --enable-yjit" \
38
+ RUBYOPT="--yjit"
39
+ ENV PATH=/opt/miniconda3/bin:${PATH}:/opt/platform:${JAVA_HOME}/bin:${MAVEN_HOME}/bin:${GRADLE_HOME}/bin:/usr/local/bin/:/root/.local/bin:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:/root/.rbenv/bin:
37
40
38
41
WORKDIR /opt
39
42
COPY ./ci/conda-install.sh /opt/
@@ -56,8 +59,22 @@ RUN set -e; \
56
59
*) echo >&2 "error: unsupported architecture: '$ARCH_NAME'" ; exit 1 ;; \
57
60
esac; \
58
61
echo -e "[nodejs]\n name=nodejs\n stream=20\n profiles=\n state=enabled\n " > /etc/dnf/modules.d/nodejs.module \
59
- && microdnf install -y gcc git-core php php-cli php-curl php-zip php-bcmath php-json php-pear php-mbstring php-devel make wget bash graphviz graphviz-gd \
60
- pcre2 findutils which tar gzip zip unzip sudo nodejs ncurses sqlite-devel glibc-common glibc-all-langpacks \
62
+ && dnf install -y --nodocs gcc git-core php php-cli php-curl php-zip php-bcmath php-json php-pear php-mbstring php-devel make wget bash graphviz graphviz-gd \
63
+ openssl-devel libffi-devel readline-devel libyaml zlib-devel ncurses ncurses-devel rust \
64
+ pcre2 findutils which tar gzip zip unzip sudo nodejs sqlite-devel glibc-common glibc-all-langpacks \
65
+ && dnf install -y epel-release \
66
+ && dnf config-manager --set-enabled crb \
67
+ && dnf install -y --nodocs libyaml-devel jemalloc-devel \
68
+ && git clone https://github.com/rbenv/rbenv.git --depth=1 ~/.rbenv \
69
+ && echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc \
70
+ && echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' >> ~/.bashrc \
71
+ && source ~/.bashrc \
72
+ && mkdir -p "$(rbenv root)/plugins" \
73
+ && git clone https://github.com/rbenv/ruby-build.git --depth=1 "$(rbenv root)/plugins/ruby-build" \
74
+ && rbenv install 3.4.0 \
75
+ && rbenv global 3.4.0 \
76
+ && ruby --version \
77
+ && which ruby \
61
78
&& mkdir -p /opt/miniconda3 /opt/workspace \
62
79
&& wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-${ARCH_NAME}.sh -O /opt/miniconda3/miniconda.sh \
63
80
&& bash /opt/miniconda3/miniconda.sh -b -u -p /opt/miniconda3 \
@@ -70,7 +87,7 @@ RUN set -e; \
70
87
&& conda config --add channels conda-forge \
71
88
&& conda init bash \
72
89
&& bash -c /opt/conda-install.sh \
73
- && curl -LO https://repo.almalinux.org/almalinux/9 /CRB/${ARCH_NAME}/os/Packages/graphviz-devel-2.44.0-26.el9.${ARCH_NAME}.rpm \
90
+ && curl -LO https://repo.almalinux.org/almalinux/10 /CRB/${ARCH_NAME}/os/Packages/graphviz-devel-2.44.0-26.el9.${ARCH_NAME}.rpm \
74
91
&& rpm -ivh graphviz-devel-2.44.0-26.el9.${ARCH_NAME}.rpm \
75
92
&& rm graphviz-devel-2.44.0-26.el9.${ARCH_NAME}.rpm \
76
93
&& curl -s "https://get.sdkman.io" | bash \
@@ -82,7 +99,6 @@ RUN set -e; \
82
99
&& sdk offline enable \
83
100
&& mv /root/.sdkman/candidates/* /opt/ \
84
101
&& rm -rf /root/.sdkman \
85
- && microdnf install -y epel-release \
86
102
&& mkdir -p ${ANDROID_HOME}/cmdline-tools \
87
103
&& curl -L https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip -o ${ANDROID_HOME}/cmdline-tools/android_tools.zip \
88
104
&& unzip ${ANDROID_HOME}/cmdline-tools/android_tools.zip -d ${ANDROID_HOME}/cmdline-tools/ \
@@ -107,5 +123,5 @@ RUN unzip -q chen.zip \
107
123
&& composer update --no-progress --prefer-dist --ignore-platform-reqs \
108
124
&& python -m pip install --no-deps . \
109
125
&& rm chen.zip conda-install.sh pyproject.toml \
110
- && microdnf clean all
126
+ && dnf clean all
111
127
CMD ["chennai" ]
0 commit comments