Skip to content

Commit 55bd81a

Browse files
build: use almalinux:9-minimal as a base image in utf8.Dockerfile
1 parent 4368e24 commit 55bd81a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

utf8.Dockerfile

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

44
ARG opensource_COBOL_4J_version=dummy_value
55

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

88
# install build dependencies
9-
RUN dnf update -y && \
10-
dnf install -y gcc make bison flex automake autoconf diffutils gettext java-11-openjdk-devel && \
11-
dnf clean all
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
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 && \
@@ -28,14 +28,14 @@ RUN cd /root && \
2828
rm -rf /root/opensourcecobol4j-v${opensource_COBOL_4J_version}.tar.gz /root/opensourcecobol4j-${opensource_COBOL_4J_version}
2929

3030
# Runtime stage
31-
FROM almalinux:9
31+
FROM almalinux:9-minimal
3232

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

3535
# install runtime dependencies only
36-
RUN dnf update -y && \
37-
dnf install -y java-11-openjdk-devel && \
38-
dnf clean all && \
36+
RUN microdnf update -y && \
37+
microdnf install -y java-11-openjdk-devel && \
38+
microdnf clean all && \
3939
rm -rf /var/cache/dnf/*
4040

4141
# copy built files from builder stage

0 commit comments

Comments
 (0)