Skip to content

Commit f5176af

Browse files
Tamas Pallospallost
authored andcommitted
Add support for ARM architecture in docker image
There aren't any slim images (e.g. with Alpine linux) that would support both ARM and AMD architectures, so going with a thinker Java image for now... Unfortunately couldn't find a JRE image either, only JDK
1 parent 97a91a5 commit f5176af

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,11 @@ COPY ./profiles/prod /build/profiles/prod
1414
RUN mvn -Pprod clean package spring-boot:repackage
1515

1616

17-
# slim image for distribution
18-
FROM eclipse-temurin:11-jre-alpine
17+
FROM amazoncorretto:11-al2-full
1918

2019
# expose server port
2120
EXPOSE 8080
2221

23-
# install curl
24-
RUN apk --no-cache add curl
25-
2622
# download script for reading Docker secrets
2723
RUN curl -o /tmp/read-secrets.sh "https://raw.githubusercontent.com/HSLdevcom/jore4-tools/main/docker/read-secrets.sh"
2824

0 commit comments

Comments
 (0)