From 38f5b697bf4f13a11dbe6a064cd35a076949752f Mon Sep 17 00:00:00 2001 From: DarthSim Date: Tue, 17 Sep 2019 15:10:38 +0600 Subject: [PATCH] Fix docker build --- docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 1b14ad08..c5b369ba 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -56,11 +56,11 @@ RUN cd /root \ --enable-silent-rules \ && make install-strip -ADD . /go/src/github.com/imgproxy/imgproxy -WORKDIR /go/src/github.com/imgproxy/imgproxy +ADD . /app +WORKDIR /app # Build imgproxy -RUN cd /go/src/github.com/imgproxy/imgproxy \ +RUN cd /app \ && CGO_LDFLAGS_ALLOW="-s|-w" go build -v -o /usr/local/bin/imgproxy # Copy compiled libs here to copy them to the final image