2024-12-02 21:45:12 +01:00
|
|
|
####################
|
|
|
|
## Base container ##
|
|
|
|
####################
|
|
|
|
FROM archlinux:base-devel AS base
|
2024-08-18 14:57:23 +02:00
|
|
|
|
2024-08-18 15:09:42 +02:00
|
|
|
LABEL org.opencontainers.image.title="actions-docker"
|
2024-08-18 18:04:19 +02:00
|
|
|
LABEL org.opencontainers.image.description="StarOpenSource's Docker image for CI/CD pipelines."
|
2024-08-18 15:09:42 +02:00
|
|
|
LABEL org.opencontainers.image.authors="JeremyStar™ <jeremystartm@staropensource.de> (@jeremystartm)"
|
2024-08-18 16:53:12 +02:00
|
|
|
LABEL org.opencontainers.image.url="https://git.staropensource.de/StarOpenSource/actions-docker/src/branch/develop/README.md"
|
2024-08-18 15:09:42 +02:00
|
|
|
LABEL org.opencontainers.image.documentation=""
|
|
|
|
LABEL org.opencontainers.image.source="https://git.staropensource.de/StarOpenSource/actions-docker"
|
|
|
|
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
|
|
|
LABEL org.opencontainers.image.version=""
|
|
|
|
LABEL org.opencontainers.image.revision=""
|
|
|
|
LABEL org.opencontainers.image.created=""
|
|
|
|
|
2024-08-18 14:57:23 +02:00
|
|
|
# Tweak pacman.conf
|
|
|
|
RUN sed 's/\#ParallelDownloads = 5/ParallelDownloads = 15/g' -i /etc/pacman.conf
|
|
|
|
|
|
|
|
# Initialize pacman keyring
|
|
|
|
RUN pacman-key --init
|
|
|
|
RUN pacman-key --populate
|
|
|
|
|
|
|
|
# Update system
|
|
|
|
RUN pacman -Syu --noconfirm
|
|
|
|
|
|
|
|
# Install packages required for actions to function properly
|
|
|
|
RUN pacman -S --noconfirm nodejs git
|
2024-12-02 21:45:12 +01:00
|
|
|
|
|
|
|
####################
|
|
|
|
## Java container ##
|
|
|
|
####################
|
|
|
|
FROM base AS java
|
|
|
|
|
|
|
|
# Install OpenJDK 21
|
|
|
|
RUN pacman -S --noconfirm jdk21-openjdk
|