Skip to content

Commit b9af1b4

Browse files
authored
Update Dockerfile for nginx vuln (#697)
* Update Dockerfile * Update maven2 repo
1 parent 3861930 commit b9af1b4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/rebuild_swagger.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ function download_codegen() {
2020
if [[ ! -e "swagger-codegen-cli.jar" ]]
2121
then
2222
if [[ -e "$(command -v wget)" ]]; then
23-
wget http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.3/swagger-codegen-cli-2.2.3.jar -O swagger-codegen-cli.jar
23+
wget https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.3/swagger-codegen-cli-2.2.3.jar -O swagger-codegen-cli.jar
2424
elif [[ -e "$(command -v curl)" ]]; then
25-
curl http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.3/swagger-codegen-cli-2.2.3.jar > swagger-codegen-cli.jar
25+
curl https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.3/swagger-codegen-cli-2.2.3.jar > swagger-codegen-cli.jar
2626
else
27-
"Cannot download 'http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.3/swagger-codegen-cli-2.2.3.jar' automatically (no curl or wget found on PATH)"
27+
"Cannot download 'https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.3/swagger-codegen-cli-2.2.3.jar' automatically (no curl or wget found on PATH)"
2828
"You can download it manually into this directory to continue"
2929
exit 1
3030
fi

ui/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN npm install
2121

2222
RUN /ui/node_modules/.bin/ng build --prod
2323

24-
FROM nginx
24+
FROM nginx:1.19.0
2525

2626
COPY --from=1 /ui/dist /ui/dist
2727
ADD ./ui/nginx.prod.conf /etc/nginx/nginx.conf

0 commit comments

Comments
 (0)