-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.8.1
38 lines (31 loc) · 1.39 KB
/
Dockerfile.8.1
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
FROM jetbrains/qodana-php:2023.2 as qodana-php
FROM bitnami/minideb:bookworm
ENV JAVA_HOME=/opt/idea/jbr \
DEVICEID= \
QODANA_DOCKER=true \
QODANA_CONF=/root/.config/idea \
PATH=/opt/idea/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
HOME=/root \
LC_ALL=en_US.UTF-8 \
QODANA_DIST=/opt/idea \
QODANA_DATA=/data
COPY --from=qodana-php /opt/idea /opt/idea
RUN apt-get update && \
apt-get install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
curl https://packages.sury.org/php/README.txt | bash && \
apt-get install -y nodejs php8.1-cli php8.1-mysql php8.1-curl php8.1-gd php8.1-xml php8.1-zip php8.1-opcache php8.1-mbstring php8.1-intl php8.1-imap php8.1-pgsql php8.1-soap php8.1-bcmath php8.1-redis && \
rm -rf /var/cache/apt /var/lib/apt/ /tmp/* && \
update-alternatives --install /usr/bin/java java $JAVA_HOME/bin/java 0 && \
update-alternatives --install /usr/bin/javac javac $JAVA_HOME/bin/javac 0 && \
update-alternatives --set java $JAVA_HOME/bin/java && \
update-alternatives --set javac $JAVA_HOME/bin/javac && \
mkdir -p /root/.config/idea && \
mkdir -p /data/project && \
chmod 777 -R /root && \
chmod 777 -R /data && \
chmod 666 /etc/passwd
COPY rootfs/ /
COPY --from=composer/composer:2-bin /composer /usr/bin/composer
WORKDIR /data/project
ENTRYPOINT ["/entrypoint.sh"]