fix(docker): fix Dockerfile
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
@@ -74,11 +75,11 @@ func runCommand(input string, param ConversionParameters) (io.ReadCloser, error)
|
||||
args = append(args, "-o", outFile)
|
||||
args = append(args, input)
|
||||
|
||||
cmd := exec.Command("/opt/homebrew/bin/inkscape", args...)
|
||||
cmd := exec.Command("inkscape", args...)
|
||||
cmd.Dir = svg.TempDir
|
||||
|
||||
out, err := cmd.CombinedOutput()
|
||||
|
||||
log.Println(string(out))
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("inkscape failed: %w: %s", err, string(out))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user