remove buildvcs=false (#142)

This commit is contained in:
Benny 2022-08-12 18:39:07 +08:00 committed by GitHub
parent 0ac97eee91
commit e5d5613502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,8 @@ COPY . /build
RUN cd /build && sed -i "s|.\/pics|${IMG_PATH}|g" config.json \
&& sed -i "s|\"\"|\"${EXHAUST_PATH}\"|g" config.json \
&& sed -i 's/127.0.0.1/0.0.0.0/g' config.json \
&& go build -ldflags="-s -w" -buildvcs=false -o webp-server .
&& rm -rf .git \
&& go build -ldflags="-s -w" -o webp-server .