-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from jumpserver/pr@dev@perf_build_security
fix: 修复镜像的依赖安全问题
- Loading branch information
Showing
3 changed files
with
44 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM jumpserver/chen-base:20241009_104417 AS stage-build | ||
FROM jumpserver/chen-base:20241209_022248 AS stage-build | ||
ENV LANG=en_US.UTF-8 | ||
|
||
WORKDIR /opt/chen/ | ||
|
@@ -16,15 +16,14 @@ ARG DEPENDENCIES=" \ | |
openjdk-17-jre-headless" | ||
|
||
ARG APT_MIRROR=http://deb.debian.org | ||
RUN sed -i "s@http://.*.debian.org@${APT_MIRROR}@g" /etc/apt/sources.list \ | ||
&& rm -f /etc/apt/apt.conf.d/docker-clean \ | ||
|
||
RUN set -ex \ | ||
&& sed -i "s@http://.*.debian.org@${APT_MIRROR}@g" /etc/apt/sources.list \ | ||
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends ${DEPENDENCIES} \ | ||
&& echo "no" | dpkg-reconfigure dash \ | ||
&& sed -i "[email protected]=SSLv3, TLSv1, [email protected]=SSLv3@" /etc/java-17-openjdk/security/java.security \ | ||
&& sed -i "s@# export @export @g" ~/.bashrc \ | ||
&& sed -i "s@# alias @alias @g" ~/.bashrc | ||
&& sed -i "[email protected]=SSLv3, TLSv1, [email protected]=SSLv3@" /etc/java-17-openjdk/security/java.security | ||
|
||
WORKDIR /opt/chen | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters