This commit is contained in:
@@ -49,8 +49,6 @@ func Build(ctx context.Context) error {
|
||||
egrp.Go(func() error {
|
||||
golang := client.Container().From("golang:1.20.3")
|
||||
|
||||
golangDir := golang.Directory("/usr/local/go")
|
||||
|
||||
shuttleImg := golang.
|
||||
WithDirectory("/app", shuttleGit).
|
||||
WithWorkdir("/app").
|
||||
@@ -79,9 +77,8 @@ func Build(ctx context.Context) error {
|
||||
Container(dagger.ContainerOpts{
|
||||
Platform: platform,
|
||||
}).
|
||||
From("debian").
|
||||
From("golang:1.20.3").
|
||||
WithWorkdir("/app").
|
||||
WithDirectory("/usr/local/bin/go", golangDir).
|
||||
WithFile("/usr/local/bin/shuttle", shuttle).
|
||||
WithExec([]string{"shuttle", "version"})
|
||||
if _, err := image.ExitCode(ctx); err != nil {
|
||||
|
Reference in New Issue
Block a user