Skip to content

Commit 9cb2f6b

Browse files
committed
Container admin for curl to write
1 parent 8f27361 commit 9cb2f6b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

images/apache/windows/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ARG WINDOWS_VERSION
66
FROM mcr.microsoft.com/windows/nanoserver:${WINDOWS_VERSION} AS httpd
77
ARG HTTPD_VERSION
88
ARG HTTPD_BUILD
9+
USER ContainerAdministrator
910
RUN echo "Downloading Apache version: %HTTPD_VERSION% build: %HTTPD_BUILD%" && `
1011
curl -sSL -o httpd.zip "https://www.apachelounge.com/download/VS17/binaries//httpd-%HTTPD_VERSION%-%HTTPD_BUILD%-win64-VS17.zip" && `
1112
tar -xf httpd.zip

images/maven/windows/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ARG OPENJDK_DISTRO
44
ARG OPENJDK_VERSION
55
FROM mcr.microsoft.com/windows/nanoserver:${WINDOWS_VERSION} as installer
66
ARG MAVEN_VERSION
7+
USER ContainerAdministrator
78
RUN echo "Downloading Maven version: %MAVEN_VERSION%" && `
89
curl.exe -sSL -o maven.zip "https://dlcdn.apache.org/maven/maven-3/%MAVEN_VERSION%/binaries/apache-maven-%MAVEN_VERSION%-bin.zip"
910
WORKDIR /maven

images/node/windows/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ ARG WINDOWS_VERSION
33
FROM mcr.microsoft.com/windows/nanoserver:${WINDOWS_VERSION} AS httpd
44
ARG NODE_VERSION
55
USER ContainerAdministrator
6-
WORKDIR /tmp
76
RUN echo "Downloading Node version: %NODE_VERSION%" && `
87
curl -sSL -o node.zip "https://nodejs.org/dist/v%NODE_VERSION%/node-v%NODE_VERSION%-win-x64.zip"
98
WORKDIR /nodejs
10-
RUN tar -xf /tmp/node.zip --strip-components 1
9+
RUN tar -xf /node.zip --strip-components 1
1110

1211
# NodeJS
1312
ARG WINDOWS_VERSION

0 commit comments

Comments
 (0)