Skip to content

Commit 024fa41

Browse files
Change base image to eclipse-temurin:11-jdk-alpine
Updated base image from almalinux to eclipse-temurin for both build and runtime stages.
1 parent 7706dd1 commit 024fa41

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Dockerfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM almalinux:9 AS builder
2+
FROM eclipse-temurin:11-jdk-alpine AS builder
33

44
ARG opensource_COBOL_4J_version=dummy_value Open_COBOL_ESQL_4J_version=dummy_value
55

@@ -43,18 +43,12 @@ RUN cd /root/ && \
4343
rm -rf /root/Open-COBOL-ESQL-4j-${Open_COBOL_ESQL_4J_version}.tar.gz /root/Open-COBOL-ESQL-4j-${Open_COBOL_ESQL_4J_version}
4444

4545
# Runtime stage
46-
FROM almalinux:9
46+
FROM eclipse-temurin:11-jdk-alpine
4747

4848
ARG opensource_COBOL_4J_version=dummy_value Open_COBOL_ESQL_4J_version=dummy_value
4949

5050
SHELL ["/bin/bash", "-c"]
5151

52-
# install runtime dependencies only
53-
RUN dnf update -y && \
54-
dnf install -y java-11-openjdk-devel && \
55-
dnf clean all && \
56-
rm -rf /var/cache/dnf/*
57-
5852
# create required directories
5953
RUN mkdir -p /usr/lib/opensourcecobol4j \
6054
/usr/lib/Open-COBOL-ESQL-4j \

0 commit comments

Comments
 (0)