command
module
Version:
v0.0.0-...-12991c7
Opens a new window with list of versions in this module.
Published: Feb 9, 2025
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
convert-to-webp
启动容器
使用以下命令启动容器:
docker-compose up
如果你想在后台运行容器,可以加上-d参数:
docker-compose up -d
测试 API
容器启动后,你可以通过以下命令测试 API:
curl -X POST -F "image=@/path/to/your/image.jpg" http://localhost:8080/convert-to-webp --output converted.webp
停止和清理
停止容器
docker-compose down
删除镜像
如果你想删除构建的镜像,可以使用以下命令:
docker rmi <image-name>
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.