1- FROM ubuntu:20 .04 AS codeql_base
1+ FROM ubuntu:22 .04 AS codeql_base
22LABEL maintainer="Github codeql team"
33
44# tzdata install needs to be non-interactive
@@ -12,33 +12,31 @@ RUN adduser --home ${CODEQL_HOME} ${USERNAME} && \
1212 apt-get update && \
1313 apt-get upgrade -y && \
1414 apt-get install -y --no-install-recommends \
15- software-properties-common \
16- nodejs \
17- vim \
18- curl \
19- wget \
20- git \
21- build-essential \
22- unzip \
23- apt-transport-https \
24- python3.8 \
25- python3-venv \
26- python3-pip \
27- python3-setuptools \
28- python3-dev \
29- gnupg \
30- g++ \
31- make \
32- gcc \
33- apt-utils \
34- rsync \
35- file \
36- dos2unix \
37- gettext && \
38- apt-get clean && \
39- rm -f /usr/bin/python /usr/bin/pip && \
40- ln -s /usr/bin/python3.8 /usr/bin/python && \
41- ln -s /usr/bin/pip3 /usr/bin/pip
15+ software-properties-common \
16+ nodejs \
17+ vim \
18+ curl \
19+ wget \
20+ git \
21+ build-essential \
22+ unzip \
23+ apt-transport-https \
24+ python3.10 \
25+ python3-venv \
26+ python3-pip \
27+ python3-setuptools \
28+ python3-dev \
29+ python-is-python3 \
30+ gnupg \
31+ g++ \
32+ make \
33+ gcc \
34+ apt-utils \
35+ rsync \
36+ file \
37+ dos2unix \
38+ gettext && \
39+ apt-get clean
4240
4341# Install .NET Core and Java for tools/builds
4442RUN cd /tmp && \
@@ -48,15 +46,13 @@ RUN cd /tmp && \
4846 apt-get install -y default-jdk apt-transport-https && \
4947 apt-get update && \
5048 rm packages-microsoft-prod.deb
51- RUN apt-get install -y dotnet-sdk-3.1
49+ RUN apt-get install -y dotnet-sdk-6.0
5250
5351# Clone our setup and run scripts
54- # RUN git clone https://github.com/microsoft/codeql-container /usr/local/startup_scripts
5552RUN mkdir -p /usr/local/startup_scripts
56- RUN ls -al /usr/local/startup_scripts
5753COPY container /usr/local/startup_scripts/
58- RUN pip3 install --upgrade pip \
59- && pip3 install -r /usr/local/startup_scripts/requirements.txt
54+
55+ RUN pip3 install -r /usr/local/startup_scripts/requirements.txt
6056
6157# Install latest codeQL
6258
@@ -83,8 +79,8 @@ RUN codeql query compile --threads=0 ${CODEQL_HOME}/codeql-repo/*/ql/src/codeql-
8379ENV PYTHONIOENCODING=utf-8
8480
8581# Change ownership of all files and directories within CODEQL_HOME to the codeql user
86- RUN chown -R ${USERNAME}:${USERNAME} ${CODEQL_HOME}
82+ # RUN chown -R ${USERNAME}:${USERNAME} ${CODEQL_HOME}
8783
8884USER ${USERNAME}
8985
90- ENTRYPOINT ["python3" , "/usr/local/startup_scripts/startup.py" ]
86+ ENTRYPOINT ["python3" , "/usr/local/startup_scripts/startup.py" ]
0 commit comments