Skip to content

Commit

Permalink
feat: remove Jython's pip from images (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
iromli authored Apr 6, 2022
1 parent d8e97c4 commit e3f374f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker-jans-auth-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ RUN wget -q https://github.com/fabioz/PyDev.Debugger/archive/refs/tags/pydev_deb
&& /opt/jython/bin/pip install . \
&& rm -rf /tmp/pydev_debugger* /tmp/PyDev.Debugger-*

# uninstall Jython pip and easy_install to reduce vulnerabilities
RUN /opt/jython/bin/pip uninstall -y pip

# ===========
# Auth server
# ===========
Expand Down
2 changes: 1 addition & 1 deletion docker-jans-scim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ EXPOSE 8080
ARG JYTHON_VERSION=2.7.3
RUN wget -q https://ox.gluu.org/maven/org/gluufederation/jython-installer/${JYTHON_VERSION}/jython-installer-${JYTHON_VERSION}.jar -O /tmp/jython-installer.jar \
&& mkdir -p /opt/jython \
&& java -jar /tmp/jython-installer.jar -v -s -d /opt/jython \
&& java -jar /tmp/jython-installer.jar -v -s -d /opt/jython -e ensurepip \
&& rm -f /tmp/jython-installer.jar /tmp/*.properties

# ====
Expand Down

0 comments on commit e3f374f

Please sign in to comment.