forked from containerbase/base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.arm64
50 lines (37 loc) · 1.17 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
#--------------------------------------
# Image: base
#--------------------------------------
FROM ubuntu:focal as base
RUN uname -p | tee | grep aarch64
RUN touch /.dummy
ARG APT_HTTP_PROXY
ARG CONTAINERBASE_DEBUG
ENV BASH_ENV=/usr/local/etc/env
SHELL ["/bin/bash" , "-c"]
COPY src/ /
RUN install-containerbase
#--------------------------------------
# Image: java
#--------------------------------------
FROM base as test-java
# renovate: datasource=adoptium-java packageName=java-jre
RUN install-tool java 17.0.9+9
#--------------------------------------
# Image: java
#--------------------------------------
FROM test-java as test-gradle
# renovate: datasource=gradle-version packageName=gradle versioning=gradle
RUN install-tool gradle 8.4
#--------------------------------------
# Image: maven
#--------------------------------------
FROM test-java as test-maven
# renovate: datasource=maven packageName=org.apache.maven:maven
RUN install-tool maven 3.9.5
#--------------------------------------
# Image: final
#--------------------------------------
FROM base
COPY --from=test-java /.dummy /.dummy
COPY --from=test-gradle /.dummy /.dummy
COPY --from=test-maven /.dummy /.dummy