convert-to-webp

command module
v0.0.0-...-12991c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 5 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL