Skip to content

Commit d6017ce

Browse files
change: update the base image to almalinux:9
1 parent e1b5c22 commit d6017ce

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Build stage
2-
FROM almalinux:9-minimal AS builder
2+
FROM almalinux:9 AS builder
33

44
ARG opensource_COBOL_4J_version=dummy_value Open_COBOL_ESQL_4J_version=dummy_value
55

66
SHELL ["/bin/bash", "-c"]
77

88
# install build dependencies
9-
RUN microdnf update -y && \
10-
microdnf install -y gcc make bison flex automake autoconf diffutils gettext java-11-openjdk-devel tar gzip && \
11-
microdnf clean all
9+
RUN dnf update -y && \
10+
dnf install -y gcc make bison flex automake autoconf diffutils gettext java-11-openjdk-devel tar gzip && \
11+
dnf clean all
1212

1313
# install sbt
1414
RUN curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && \
@@ -43,17 +43,17 @@ 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-minimal
46+
FROM almalinux:9
4747

4848
ARG opensource_COBOL_4J_version=dummy_value Open_COBOL_ESQL_4J_version=dummy_value
4949

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

5252
# install runtime dependencies only
53-
RUN microdnf update -y && \
54-
microdnf install -y java-11-openjdk-devel && \
55-
microdnf clean all && \
56-
rm -rf /var/cache/microdnf/*
53+
RUN dnf update -y && \
54+
dnf install -y java-11-openjdk-devel && \
55+
dnf clean all && \
56+
rm -rf /var/cache/dnf/*
5757

5858
# create required directories
5959
RUN mkdir -p /usr/lib/opensourcecobol4j \

utf8.Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Build stage
2-
FROM almalinux:9-minimal AS builder
2+
FROM almalinux:9 AS builder
33

44
ARG opensource_COBOL_4J_version=dummy_value
55

66
SHELL ["/bin/bash", "-c"]
77

88
# install build dependencies
9-
RUN microdnf update -y && \
10-
microdnf install -y gcc make bison flex automake autoconf diffutils gettext java-11-openjdk-devel tar gzip && \
11-
microdnf clean all
9+
RUN dnf update -y && \
10+
dnf install -y gcc make bison flex automake autoconf diffutils gettext java-11-openjdk-devel tar gzip && \
11+
dnf clean all
1212

1313
# install sbt
1414
RUN curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && \
@@ -27,17 +27,17 @@ RUN cd /root && \
2727
rm -rf /root/opensourcecobol4j-v${opensource_COBOL_4J_version}.tar.gz /root/opensourcecobol4j-${opensource_COBOL_4J_version}
2828

2929
# Runtime stage
30-
FROM almalinux:9-minimal
30+
FROM almalinux:9
3131

3232
ARG opensource_COBOL_4J_version=dummy_value
3333

3434
SHELL ["/bin/bash", "-c"]
3535

3636
# install runtime dependencies only
37-
RUN microdnf update -y && \
38-
microdnf install -y java-11-openjdk-devel && \
39-
microdnf clean all && \
40-
rm -rf /var/cache/microdnf/*
37+
RUN dnf update -y && \
38+
dnf install -y java-11-openjdk-devel && \
39+
dnf clean all && \
40+
rm -rf /var/cache/dnf/*
4141

4242
# copy built files from builder stage
4343
COPY --from=builder /usr/lib/opensourcecobol4j/ /usr/lib/opensourcecobol4j/

0 commit comments

Comments
 (0)