Skip to content

Commit 096cc9f

Browse files
committed
first commit of nuget.server
1 parent 04db677 commit 096cc9f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM coderobin/windows-build-uwp-461
2+
MAINTAINER xied75@gmail.com
3+
4+
EXPOSE 8080
5+
6+
RUN powershell -Command \
7+
wget https://download.microsoft.com/download/C/E/8/CE8D18F5-D4C0-45B5-B531-ADECD637A1AA/Dev14%20Update%201%20MSIs/iisexpress_amd64_en-US.msi -OutFile iisexpress_amd64_en-US.msi; \
8+
Start-Process -FilePath msiexec.exe -ArgumentList /i, "C:\iisexpress_amd64_en-US.msi", /qn, /L, iisexpress_amd64_en-US.install.log -PassThru -Wait; \
9+
rm iisexpress_amd64_en-US.msi; \
10+
wget https://coderobin.blob.core.windows.net/public/Microsoft/Microsoft.WebApplication.zip -OutFile Microsoft.WebApplication.zip; \
11+
Expand-Archive -Path Microsoft.WebApplication.zip -DestinationPath 'C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications' -Force; \
12+
rm Microsoft.WebApplication.zip; \
13+
wget https://github.com/git-for-windows/git/releases/download/v2.9.0.windows.1/PortableGit-2.9.0-64-bit.7z.exe -OutFile PortableGit-2.9.0-64-bit.7z.exe; \
14+
Start-Process -FilePath PortableGit-2.9.0-64-bit.7z.exe -ArgumentList '-y' -PassThru -Wait; \
15+
rm PortableGit-2.9.0-64-bit.7z.exe; \
16+
C:\PortableGit\bin\git.exe clone https://github.com/coderobin/nuget.server.web.git; \
17+
C:\nuget.exe restore C:\nuget.server.web\NuGet.Server.Web.sln; \
18+
Start-Process -FilePath 'C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe' -ArgumentList 'C:\nuget.server.web\NuGet.Server.Web.sln', '/p:Configuration=Release' -PassThru -Wait; \
19+
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Aspnet_regiis.exe -ga 'user manager\containeradministrator';
20+
21+
CMD ["C:\\Program Files\\IIS Express\\iisexpress.exe", "/path:C:\\nuget.server.web\\NuGet.Server.Web", "/systray:false"]

0 commit comments

Comments
 (0)