Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 03fa2d3

Browse files
authored
Merge pull request #26 from SergTogul/log4j
Updated the Dockerfile and pox file to patch log4j
2 parents bc0e8dd + 431575a commit 03fa2d3

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

Dockerfile

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,22 @@ ENV DEBIAN_FRONTEND=noninteractive
44

55
LABEL com.amazonaws.sagemaker.capabilities.accept-bind-to-port=true
66

7-
RUN apt-get update && apt-get -y install apt-utils net-tools apt-transport-https wget curl nginx git maven
7+
RUN apt-get update \
8+
&& apt-get -y install apt-utils \
9+
net-tools \
10+
apt-transport-https \
11+
wget \
12+
curl \
13+
nginx \
14+
git \
15+
maven \
16+
make \
17+
gcc \
18+
zlib1g-dev
819

920
RUN apt -y update
10-
RUN apt -y install python3.6
1121

12-
ARG OPENSSL_VERSION=1.1.1g
22+
ARG OPENSSL_VERSION=1.1.1l
1323
ARG PYTHON=python3
1424
ARG PIP=pip3
1525
ARG PYTHON_VERSION=3.6.13
@@ -36,11 +46,7 @@ RUN wget -q https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VER
3646
&& ${PIP} --no-cache-dir install --upgrade pip
3747

3848
# Remove other Python installations.
39-
RUN apt -y purge --auto-remove libpython2.7 \
40-
&& apt -y purge --auto-remove libpython3.7 \
41-
&& apt -y purge --auto-remove python3.7 \
42-
&& apt -y purge --auto-remove python2.7 \
43-
&& apt-get clean \
49+
RUN apt-get clean \
4450
&& rm -rf /var/lib/apt/lists/*
4551

4652
COPY / /sagemaker-sparkml-model-server

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,5 +204,6 @@
204204
</dependencies>
205205
<properties>
206206
<java.version>1.8</java.version>
207+
<log4j2.version>2.17.1</log4j2.version>
207208
</properties>
208209
</project>

0 commit comments

Comments
 (0)