From 128cd69dc6ecc78403556e6e6dff2508cf058b69 Mon Sep 17 00:00:00 2001 From: Travis Glenn Hansen Date: Wed, 11 May 2022 17:41:46 -0600 Subject: [PATCH] make windows image host-process compatible Signed-off-by: Travis Glenn Hansen --- .dockerignore | 8 +++----- Dockerfile | 1 + Dockerfile.Windows | 5 +++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.dockerignore b/.dockerignore index 885a75c..9564965 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,3 @@ -.git -.gitignore -README.md -/ci -/src/csi-grpc-proxy +** + +!/builds diff --git a/Dockerfile b/Dockerfile index a1fa9f4..0908499 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Dockerfile.Windows b/Dockerfile.Windows index 3dd4006..3cab5bc 100644 --- a/Dockerfile.Windows +++ b/Dockerfile.Windows @@ -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