mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-17 21:22:01 +08:00
Better .dockerignore (#143)
This commit is contained in:
parent
e5d5613502
commit
4d6fa9ef69
@ -3,7 +3,8 @@ exhaust/*
|
||||
pics/*
|
||||
remote-raw/*
|
||||
scripts/*
|
||||
.git/*
|
||||
.git
|
||||
.dockerignore
|
||||
README.md
|
||||
LICENSE
|
||||
Makefile
|
@ -10,11 +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 \
|
||||
&& rm -rf .git \
|
||||
&& go build -ldflags="-s -w" -o webp-server .
|
||||
|
||||
|
||||
|
||||
FROM alpine
|
||||
|
||||
COPY --from=builder /build/webp-server /usr/bin/webp-server
|
||||
|
Loading…
x
Reference in New Issue
Block a user