瀏覽代碼

Fix docker build

DarthSim 5 年之前
父節點
當前提交
38f5b697bf
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      docker/Dockerfile

+ 3 - 3
docker/Dockerfile

@@ -56,11 +56,11 @@ RUN cd /root \
     --enable-silent-rules \
     --enable-silent-rules \
   && make install-strip
   && make install-strip
 
 
-ADD . /go/src/github.com/imgproxy/imgproxy
-WORKDIR /go/src/github.com/imgproxy/imgproxy
+ADD . /app
+WORKDIR /app
 
 
 # Build imgproxy
 # 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
   && CGO_LDFLAGS_ALLOW="-s|-w" go build -v -o /usr/local/bin/imgproxy
 
 
 # Copy compiled libs here to copy them to the final image
 # Copy compiled libs here to copy them to the final image