mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 21:52:01 +08:00
Merge pull request #85 from webp-sh/fix-on-docker-image-and-docs
Fix on docker image and docs
This commit is contained in:
commit
4d04f7e3bc
@ -19,6 +19,13 @@ FROM alpine
|
|||||||
COPY --from=builder /build/webp-server /usr/bin/webp-server
|
COPY --from=builder /build/webp-server /usr/bin/webp-server
|
||||||
COPY --from=builder /build/config.json /etc/config.json
|
COPY --from=builder /build/config.json /etc/config.json
|
||||||
|
|
||||||
|
COPY --from=builder /usr/lib/libaom.a /usr/lib/libaom.a
|
||||||
|
COPY --from=builder /usr/lib/libaom.so /usr/lib/libaom.so
|
||||||
|
COPY --from=builder /usr/lib/libaom.so.3 /usr/lib/libaom.so.3
|
||||||
|
COPY --from=builder /usr/lib/libaom.so.3 /usr/lib/libaom.so.3
|
||||||
|
COPY --from=builder /usr/lib/libaom.so.3.2.0 /usr/lib/libaom.so.3.2.0
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
VOLUME /opt/exhaust
|
VOLUME /opt/exhaust
|
||||||
CMD ["/usr/bin/webp-server", "--config", "/etc/config.json"]
|
CMD ["/usr/bin/webp-server", "--config", "/etc/config.json"]
|
@ -37,7 +37,8 @@ The default `config.json` may look like this.
|
|||||||
"QUALITY": "80",
|
"QUALITY": "80",
|
||||||
"IMG_PATH": "/path/to/pics",
|
"IMG_PATH": "/path/to/pics",
|
||||||
"EXHAUST_PATH": "/path/to/exhaust",
|
"EXHAUST_PATH": "/path/to/exhaust",
|
||||||
"ALLOWED_TYPES": ["jpg","png","jpeg"]
|
"ALLOWED_TYPES": ["jpg","png","jpeg","bmp"],
|
||||||
|
"ENABLE_AVIF": false
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -4,10 +4,6 @@
|
|||||||
"QUALITY": "80",
|
"QUALITY": "80",
|
||||||
"IMG_PATH": "./pics",
|
"IMG_PATH": "./pics",
|
||||||
"EXHAUST_PATH": "./exhaust",
|
"EXHAUST_PATH": "./exhaust",
|
||||||
"ALLOWED_TYPES": [
|
"ALLOWED_TYPES": ["jpg","png","jpeg","bmp"],
|
||||||
"jpg",
|
"ENABLE_AVIF": false
|
||||||
"png",
|
|
||||||
"jpeg",
|
|
||||||
"bmp"
|
|
||||||
]
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user