fix(build-system) - add sac2016 tag for Windows image (#2909)

pull/2877/head
Steven Kang 2019-05-29 16:57:30 +12:00 committed by Anthony Lapenna
parent 5388585ef1
commit d75f2f5d7d
3 changed files with 4 additions and 17 deletions

View File

@ -6,7 +6,7 @@ param (
$ErrorActionPreference = "Stop";
$binary = "portainer.exe"
$go_path = "$($(Get-ITEM -Path env:AGENT_HOMEDIRECTORY).Value)\go"
$go_path = "$($(Get-ITEM -Path env:AGENT_TEMPDIRECTORY).Value)\go"
Set-Item env:GOPATH "$go_path"
@ -17,7 +17,7 @@ Copy-Item -Path "api" -Destination "$go_path\src\github.com\portainer\portainer\
Set-Location -Path "api\cmd\portainer"
go.exe get -t -d -v ./...
go.exe build -v
go get -t -d -v ./...
go build -v
Move-Item -Path "$($binary)" -Destination "dist"

View File

@ -1,13 +0,0 @@
FROM microsoft/nanoserver
USER ContainerAdministrator
COPY dist /
VOLUME C:\\data
WORKDIR /
EXPOSE 9000
ENTRYPOINT ["/portainer.exe"]

View File

@ -1,4 +1,4 @@
FROM microsoft/nanoserver
FROM microsoft/nanoserver:sac2016
COPY dist /