diff --git a/scripts/rebuild_swagger.sh b/scripts/rebuild_swagger.sh index 2a4f6f5d0..f1eba3767 100755 --- a/scripts/rebuild_swagger.sh +++ b/scripts/rebuild_swagger.sh @@ -20,11 +20,11 @@ function download_codegen() { if [[ ! -e "swagger-codegen-cli.jar" ]] then if [[ -e "$(command -v wget)" ]]; then - 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 + 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 elif [[ -e "$(command -v curl)" ]]; then - 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 + 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 else - "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)" + "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)" "You can download it manually into this directory to continue" exit 1 fi diff --git a/ui/Dockerfile b/ui/Dockerfile index 2ec71ec81..f02e66e73 100644 --- a/ui/Dockerfile +++ b/ui/Dockerfile @@ -21,7 +21,7 @@ RUN npm install RUN /ui/node_modules/.bin/ng build --prod -FROM nginx +FROM nginx:1.19.0 COPY --from=1 /ui/dist /ui/dist ADD ./ui/nginx.prod.conf /etc/nginx/nginx.conf