File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,21 +2,21 @@ FROM mcr.microsoft.com/windows/servercore:ltsc2016 AS download
22
33SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
44
5- ENV PG_VERSION 10.2 -1
5+ ENV PG_VERSION 11.7 -1
66
7- RUN Invoke-WebRequest $('https ://get.enterprisedb.com/postgresql/postgresql-{0}-windows-x64-binaries.zip' -f $env:PG_VERSION) -OutFile 'postgres.zip' -UseBasicParsing ; \
7+ RUN Invoke-WebRequest $('http ://get.enterprisedb.com/postgresql/postgresql-{0}-windows-x64-binaries.zip' -f $env:PG_VERSION) -OutFile 'postgres.zip' -UseBasicParsing ; \
88 Expand-Archive postgres.zip -DestinationPath C:\ ; \
99 Remove-Item postgres.zip
1010
11- RUN Invoke-WebRequest 'http://download.microsoft.com/download/0/5/6/056DCDA9-D667-4E27-8001-8A0C6971D6B1/vcredist_x64 .exe' -OutFile vcredist_x64.exe ; \
11+ RUN Invoke-WebRequest 'http://download.microsoft.com/download/0/6/4/064F84EA-D1DB-4EAA-9A5C-CC2F0FF6A638/vc_redist.x64 .exe' -OutFile vcredist_x64.exe ; \
1212 Start-Process vcredist_x64.exe -ArgumentList '/install' , '/passive' , '/norestart' -NoNewWindow -Wait ; \
1313 Remove-Item vcredist_x64.exe
1414
1515FROM mcr.microsoft.com/windows/nanoserver:10.0.14393.2068
1616
1717COPY --from=download /pgsql /pgsql
18- COPY --from=download /windows/system32/msvcp120 .dll /pgsql/bin/msvcp120 .dll
19- COPY --from=download /windows/system32/msvcr120 .dll /pgsql/bin/msvcr120 .dll
18+ COPY --from=download /windows/system32/VCRUNTIME140 .dll /pgsql/bin/VCRUNTIME140 .dll
19+ COPY --from=download /windows/system32/msvcp140 .dll /pgsql/bin/msvcp140 .dll
2020
2121RUN setx /M PATH "C:\p gsql\b in;%PATH%"
2222
Original file line number Diff line number Diff line change 11# PostgreSQL
22
3- This is a small test of PostgreSQL 10.1 in a NanoServer container.
3+ This is a small test of PostgreSQL 11.7 in a NanoServer container.
44
55```
66docker build -t postgres .
You can’t perform that action at this time.
0 commit comments