1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-08 10:45:04 +02:00

Fix docker build

This commit is contained in:
DarthSim 2019-09-17 15:10:38 +06:00
parent 40fe09b15e
commit 38f5b697bf

View File

@ -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