mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 05:32:02 +08:00
Better .dockerignore (#143)
This commit is contained in:
parent
e5d5613502
commit
4d6fa9ef69
@ -3,7 +3,8 @@ exhaust/*
|
|||||||
pics/*
|
pics/*
|
||||||
remote-raw/*
|
remote-raw/*
|
||||||
scripts/*
|
scripts/*
|
||||||
.git/*
|
.git
|
||||||
|
.dockerignore
|
||||||
README.md
|
README.md
|
||||||
LICENSE
|
LICENSE
|
||||||
Makefile
|
Makefile
|
@ -10,11 +10,8 @@ COPY . /build
|
|||||||
RUN cd /build && sed -i "s|.\/pics|${IMG_PATH}|g" config.json \
|
RUN cd /build && sed -i "s|.\/pics|${IMG_PATH}|g" config.json \
|
||||||
&& sed -i "s|\"\"|\"${EXHAUST_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 \
|
&& 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 .
|
&& go build -ldflags="-s -w" -o webp-server .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
COPY --from=builder /build/webp-server /usr/bin/webp-server
|
COPY --from=builder /build/webp-server /usr/bin/webp-server
|
||||||
|
Loading…
x
Reference in New Issue
Block a user