Skip to content

Commit 0595aab

Browse files
lareethStefanScherer
authored andcommitted
Updated version setting location (#4)
* Set VERSION env for build to use * Changed set version env to cmd and not powershell * No longer need setversion.ps1
1 parent 2184d80 commit 0595aab

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ RUN choco install -y mingw
1515
ENV GOPATH C:\gopath
1616
RUN git clone -q --branch=v%DOCKER_VERSION% --single-branch https://github.com/docker/cli.git C:\gopath\src\github.com\docker\cli
1717
WORKDIR C:\gopath\src\github.com\docker\cli
18-
COPY setversion.ps1 setversion.ps1
19-
RUN powershell -File .\setversion.ps1
20-
RUN type C:\gopath\src\github.com\docker\cli\cli\version.go
18+
RUN setx VERSION "%DOCKER_VERSION%"
2119
RUN powershell -File .\scripts\make.ps1 -Binary
2220
RUN dir C:\gopath\src\github.com\docker\cli\build\docker.exe

setversion.ps1

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)