Skip to content

Commit

Permalink
make windows image host-process compatible
Browse files Browse the repository at this point in the history
Signed-off-by: Travis Glenn Hansen <[email protected]>
  • Loading branch information
travisghansen committed May 11, 2022
1 parent 937d885 commit 128cd69
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 3 additions & 5 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.git
.gitignore
README.md
/ci
/src/csi-grpc-proxy
**

!/builds
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# local testing
# docker build --pull -t foobar --build-arg TARGETPLATFORM="linux/amd64" .
# docker run --rm -ti foobar

FROM alpine:3.15 as builder

Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.Windows
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ FROM mcr.microsoft.com/windows/nanoserver:${BASE_TAG}

LABEL org.opencontainers.image.source https://github.com/democratic-csi/csi-grpc-proxy

COPY builds/csi-grpc-proxy-docker-image-build-windows-amd64.exe C:/bin/csi-grpc-proxy.exe
CMD c:\\bin\\csi-grpc-proxy.exe
COPY builds/csi-grpc-proxy-docker-image-build-windows-amd64.exe C:/app/csi-grpc-proxy.exe
WORKDIR /app
CMD csi-grpc-proxy.exe

0 comments on commit 128cd69

Please sign in to comment.