fix(build-system) - add sac2016 tag for Windows image (#2909)
parent
5388585ef1
commit
d75f2f5d7d
|
@ -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"
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
FROM microsoft/nanoserver
|
||||
|
||||
USER ContainerAdministrator
|
||||
|
||||
COPY dist /
|
||||
|
||||
VOLUME C:\\data
|
||||
|
||||
WORKDIR /
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
ENTRYPOINT ["/portainer.exe"]
|
|
@ -1,4 +1,4 @@
|
|||
FROM microsoft/nanoserver
|
||||
FROM microsoft/nanoserver:sac2016
|
||||
|
||||
COPY dist /
|
||||
|
||||
|
|
Loading…
Reference in New Issue