-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathDockerfile.arm64
66 lines (50 loc) · 1.62 KB
/
Dockerfile.arm64
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
ARG BASE_IMAGE=containerbase
#--------------------------------------
# Image: containerbase
#--------------------------------------
FROM ghcr.io/containerbase/ubuntu:24.04 AS containerbase
ENV BASH_ENV=/usr/local/etc/env
SHELL ["/bin/bash" , "-c"]
ARG TARGETARCH
COPY dist/docker/ /
COPY dist/cli/containerbase-cli-${TARGETARCH} /usr/local/containerbase/bin/containerbase-cli
ARG APT_HTTP_PROXY
ARG CONTAINERBASE_CDN
ARG CONTAINERBASE_DEBUG
ARG CONTAINERBASE_LOG_LEVEL
RUN install-containerbase
#--------------------------------------
# Image: base
#--------------------------------------
FROM ${BASE_IMAGE} AS base
RUN uname -p | tee | grep aarch64
RUN touch /.dummy
ARG APT_HTTP_PROXY
ARG CONTAINERBASE_CDN
ARG CONTAINERBASE_DEBUG
ARG CONTAINERBASE_LOG_LEVEL
#--------------------------------------
# Image: java
#--------------------------------------
FROM base AS test-java
# renovate: datasource=java-version packageName=java-jre
RUN install-tool java 21.0.5+11.0.LTS
#--------------------------------------
# Image: java
#--------------------------------------
FROM test-java AS test-gradle
# renovate: datasource=gradle-version packageName=gradle versioning=gradle
RUN install-tool gradle 8.12
#--------------------------------------
# Image: maven
#--------------------------------------
FROM test-java AS test-maven
# renovate: datasource=maven packageName=org.apache.maven:maven
RUN install-tool maven 3.9.9
#--------------------------------------
# Image: final
#--------------------------------------
FROM base
COPY --from=test-java /.dummy /.dummy
COPY --from=test-gradle /.dummy /.dummy
COPY --from=test-maven /.dummy /.dummy