Skip to content

Commit e04048d

Browse files
authored
Merge pull request #1136 from kermitt2/fix-vulnerabilities
Reduce critical vulnerabilities in the grobid docker images
2 parents 748a7f6 + b107dbc commit e04048d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Dockerfile.crf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ FROM openjdk:17-jdk-slim as builder
1818
USER root
1919

2020
RUN apt-get update && \
21+
apt-get -y upgrade && \
2122
apt-get -y --no-install-recommends install unzip
2223

2324
WORKDIR /opt/grobid-source
@@ -65,6 +66,7 @@ RUN rm -rf grobid-source
6566
FROM openjdk:17-slim
6667

6768
RUN apt-get update && \
69+
apt-get -y upgrade && \
6870
apt-get -y --no-install-recommends install libxml2 libfontconfig && \
6971
rm -rf /var/lib/apt/lists/*
7072

Dockerfile.delft

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FROM openjdk:17-jdk-slim as builder
2020
USER root
2121

2222
RUN apt-get update && \
23+
apt-get -y upgrade && \
2324
apt-get -y --no-install-recommends install unzip
2425

2526
WORKDIR /opt/grobid-source
@@ -86,6 +87,7 @@ ENTRYPOINT ["/tini", "-s", "--"]
8687

8788
# install JRE, python and other dependencies
8889
RUN apt-get update && \
90+
apt-get -y upgrade && \
8991
apt-get -y --no-install-recommends install apt-utils build-essential gcc libxml2 libfontconfig unzip curl \
9092
openjdk-17-jre-headless ca-certificates-java \
9193
musl gfortran \

0 commit comments

Comments
 (0)