|
1 | | -# Copyright (c) 2022 - 2023, Oracle and/or its affiliates. All rights reserved. |
| 1 | +# Copyright (c) 2022 - 2025, Oracle and/or its affiliates. All rights reserved. |
2 | 2 | # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/. |
3 | 3 |
|
4 | 4 | # This Dockerfile is for building the base image which contains the necessary components |
5 | 5 | # to build and run the Docker image. |
6 | 6 | # This image is based on the container-registry.oracle.com/os/oraclelinux:9-slim image and contains the following |
7 | 7 | # components: |
8 | | -# Python3.11.4 compiled and installed from source. |
9 | | -# Oracle JDK 17 downloaded and installed from the tarball. |
| 8 | +# Python3.11.13 compiled and installed from source. |
10 | 9 | # Souffle 2.5 compiled and installed from source. |
11 | 10 | # Other runtime libraries (e.g sqlite-devel) which are installed from dnf. |
12 | 11 |
|
13 | | -FROM container-registry.oracle.com/os/oraclelinux:9-slim@sha256:e2aa8053b4a15f27c5f80666be1190d24aa3f403225f2dd6fdb545979f08482a |
| 12 | +FROM container-registry.oracle.com/os/oraclelinux:9-slim@sha256:92deb326256d4d3053d210397b00dce9a423789d1c555adb7a3b7a1f0747ea2f |
14 | 13 |
|
15 | 14 | ENV HOME="/home/macaron" \ |
16 | 15 | # Setting Python related environment variables. |
17 | | - PYTHON3_VERSION=3.11.4 \ |
| 16 | + PYTHON3_VERSION=3.11.13 \ |
18 | 17 | PYTHONUNBUFFERED=1 \ |
19 | 18 | PYTHONDONTWRITEBYTECODE=1 \ |
20 | 19 | # https://github.com/docker-library/python/blob/f568f56f28fab0fe87b34db777e2c2861cef002b/3.11/slim-buster/Dockerfile#L12 |
21 | 20 | LANG="C.UTF-8" \ |
22 | 21 | # The GPG key to verify the source tar ball following the instructions in https://www.python.org/downloads/ |
23 | 22 | PYTHON_SOURCE_GPG="A035C8C19219BA821ECEA86B64E628F8D684696D" \ |
24 | | - # Setting Java related environment variables. |
25 | | - JAVA_HOME="/opt/jdk-17.0.12" \ |
26 | | - PATH=/usr/local/bin:/opt/jdk-17.0.12/bin:$PATH |
| 23 | + PATH=/usr/local/bin:$PATH |
27 | 24 |
|
28 | 25 | # We run the installation of all components in one single RUN to minimize the final image size. |
29 | 26 | RUN : \ |
@@ -172,12 +169,6 @@ enabled=1\ |
172 | 169 | [ ! -e "/usr/local/bin/$dst" ]; \ |
173 | 170 | ln -svT "$src" "/usr/local/bin/$dst"; \ |
174 | 171 | done \ |
175 | | -# --------------------------------------------------------------------------------------------------------------------- |
176 | | - # INSTALLING JAVA. |
177 | | - && mkdir -p /opt \ |
178 | | - && wget -O jdk-17.0.12_linux-x64_bin.tar.gz https://download.oracle.com/java/17/archive/jdk-17.0.12_linux-x64_bin.tar.gz \ |
179 | | - && tar -xvf jdk-17.0.12_linux-x64_bin.tar.gz --directory /opt/ \ |
180 | | - && rm jdk-17.0.12_linux-x64_bin.tar.gz \ |
181 | 172 | # --------------------------------------------------------------------------------------------------------------------- |
182 | 173 | # INSTALLING SOUFFLE FROM SOURCE. |
183 | 174 | # Based on https://github.com/souffle-lang/souffle/blob/master/.github/images/oraclelinux-8/Dockerfile. |
@@ -230,8 +221,6 @@ enabled=1\ |
230 | 221 | && dnf clean all \ |
231 | 222 | && rm -rf /var/cache/yum \ |
232 | 223 | && rm -rf /var/cache/dnf \ |
233 | | - && java --version \ |
234 | | - && javac --version \ |
235 | 224 | && git --version |
236 | 225 |
|
237 | 226 | CMD [ "/bin/bash" ] |
0 commit comments