How to build the serverless.dockerfile image locally? #97

Closed
opened 2026-02-16 00:19:47 -05:00 by yindo · 1 comment
Owner

Originally created by @travels-of-little-stone-pond on GitHub (Apr 22, 2025).

  • FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
    serverless.dockerfile:11

10 | # build
11 | >>> RUN CGO_ENABLED=0 go build
12 | >>> -ldflags "
13 | >>> -X 'github.com/langgenius/dify-plugin-daemon/internal/manifest.VersionX=${VERSION}'
14 | >>> -X 'github.com/langgenius/dify-plugin-daemon/internal/manifest.BuildTimeX=$(date -u +%Y-%m-%dT%H:%M:%S%z)'"
15 | >>> -o /app/main cmd/server/main.go


ERROR: failed to solve: process "/bin/sh -c CGO_ENABLED=0 go build -ldflags " -X 'github.com/langgenius/dify-plugin-daemon/internal/manifest.VersionX=${VERSION}' -X 'github.com/langgenius/dify-plugin-daemon/internal/manifest.BuildTimeX=$(date -u +%Y-%m-%dT%H:%M:%S%z)'" -o /app/main cmd/server/main.go" did not complete successfully: exit code: 1

=====

Could you please help me figure out how to solve the problem above? Thank you.

Originally created by @travels-of-little-stone-pond on GitHub (Apr 22, 2025). - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) serverless.dockerfile:11 -------------------- 10 | # build 11 | >>> RUN CGO_ENABLED=0 go build \ 12 | >>> -ldflags "\ 13 | >>> -X 'github.com/langgenius/dify-plugin-daemon/internal/manifest.VersionX=${VERSION}' \ 14 | >>> -X 'github.com/langgenius/dify-plugin-daemon/internal/manifest.BuildTimeX=$(date -u +%Y-%m-%dT%H:%M:%S%z)'" \ 15 | >>> -o /app/main cmd/server/main.go -------------------- ERROR: failed to solve: process "/bin/sh -c CGO_ENABLED=0 go build -ldflags \" -X 'github.com/langgenius/dify-plugin-daemon/internal/manifest.VersionX=${VERSION}' -X 'github.com/langgenius/dify-plugin-daemon/internal/manifest.BuildTimeX=$(date -u +%Y-%m-%dT%H:%M:%S%z)'\" -o /app/main cmd/server/main.go" did not complete successfully: exit code: 1 ===== Could you please help me figure out how to solve the problem above? Thank you.
yindo closed this issue 2026-02-16 00:19:47 -05:00
Author
Owner
@kurokobo commented on GitHub (Apr 22, 2025): https://github.com/langgenius/dify-plugin-daemon/issues/141#issuecomment-2751465161
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#97