Skip to content

Commit

Permalink
Merge pull request #26 from SergTogul/log4j
Browse files Browse the repository at this point in the history
Updated the Dockerfile and pox file to patch log4j
  • Loading branch information
SergTogul authored Jan 11, 2022
2 parents bc0e8dd + 431575a commit 03fa2d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
22 changes: 14 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@ ENV DEBIAN_FRONTEND=noninteractive

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

RUN apt-get update && apt-get -y install apt-utils net-tools apt-transport-https wget curl nginx git maven
RUN apt-get update \
&& apt-get -y install apt-utils \
net-tools \
apt-transport-https \
wget \
curl \
nginx \
git \
maven \
make \
gcc \
zlib1g-dev

RUN apt -y update
RUN apt -y install python3.6

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

# Remove other Python installations.
RUN apt -y purge --auto-remove libpython2.7 \
&& apt -y purge --auto-remove libpython3.7 \
&& apt -y purge --auto-remove python3.7 \
&& apt -y purge --auto-remove python2.7 \
&& apt-get clean \
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*

COPY / /sagemaker-sparkml-model-server
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,6 @@
</dependencies>
<properties>
<java.version>1.8</java.version>
<log4j2.version>2.17.1</log4j2.version>
</properties>
</project>

0 comments on commit 03fa2d3

Please sign in to comment.