sun-pc 2def99d234 update | 3 weeks ago | |
---|---|---|
static | 3 weeks ago | |
.env | 3 weeks ago | |
Dockerfile | 3 weeks ago | |
build.sh | 3 weeks ago | |
main.py | 3 weeks ago | |
readme.md | 3 weeks ago | |
requirements.txt | 3 weeks ago |
docker build -t your-image-name:tag .
A Docker-based web service that converts EPS files to optimized SVG files and uploads them to Huawei Cloud OBS.
Copy .env.example
to .env
and fill in your OBS credentials:
cp .env.example .env
Edit .env
with your Huawei Cloud OBS credentials:
OBS_ACCESS_KEY=your_access_key
OBS_SECRET_KEY=your_secret_key
OBS_ENDPOINT=your_obs_endpoint
OBS_BUCKET=your_bucket_name
Build the Docker image:
docker build -t eps2svg .
Run the container:
docker run -p 8000:8000 --env-file .env eps2svg
Converts an EPS file to SVG and uploads it to OBS.
Example response:
{
"status": "success",
"message": "File processed successfully",
"obs_key": "svg/filename.svg"
}
Health check endpoint.
Response:
{
"status": "healthy"
}
The service returns appropriate HTTP status codes and error messages: