ci: updated base-image

This commit is contained in:
Marvin Zhang
2024-11-20 15:04:25 +08:00
parent 56655b3184
commit aed1bdd799
7 changed files with 66 additions and 62 deletions

View File

@@ -1,3 +1,10 @@
#!/bin/bash
apt-get install -y openjdk-11-jdk
# Exit on error
set -e
# Update package list and install OpenJDK 11
DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y --no-install-recommends openjdk-11-jdk && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*