Skip to content

Commit

Permalink
add curl
Browse files Browse the repository at this point in the history
  • Loading branch information
maddalax committed Sep 21, 2024
1 parent 07d8a5d commit f482f8f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli/htmgo/tasks/css/css.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ func DownloadTailwindCli() error {
fmt.Sprintf(`curl -LO %s`, url),
fmt.Sprintf(`chmod +x %s`, fileName),
fmt.Sprintf(`mv %s ./assets/css/tailwindcss`, fileName),
})
}, process.ExitOnError)
}
6 changes: 6 additions & 0 deletions cli/htmgo/tasks/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ func Run(command string, flags ...RunFlag) error {

err := cmd.Run()

slog.Debug("command finished",
slog.String("command", command),
slog.String("dir", cmd.Dir),
slog.String("cwd", GetWorkingDir()),
slog.String("error", fmt.Sprintf("%v", err)))

if err == nil {
return nil
}
Expand Down
2 changes: 2 additions & 0 deletions htmgo-site/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Stage 1: Build the Go binary
FROM golang:1.23-alpine AS builder

RUN apk update
RUN apk add git
RUN apk add curl

# Set the working directory inside the container
WORKDIR /app
Expand Down

0 comments on commit f482f8f

Please sign in to comment.