stdlib: improved Docker package

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes
2021-04-06 21:20:21 +00:00
parent d522fc3396
commit 647e4c898b
7 changed files with 49 additions and 122 deletions

View File

@@ -3,14 +3,15 @@ package main
import (
"dagger.io/dagger"
"dagger.io/alpine"
"dagger.io/docker"
)
// Dagger source code
source: dagger.#Artifact
// Build the dagger binaries
build: #Container & {
image: #ImageFromRef & {ref: "docker.io/golang:1.16-alpine"}
build: docker.#Container & {
image: docker.#ImageFromRef & {ref: "docker.io/golang:1.16-alpine"}
setup: [
"apk add --no-cache file",
@@ -45,7 +46,7 @@ build: #Container & {
}
// Execute `dagger help`
usage: #Container & {
usage: docker.#Container & {
image: alpine.#Image
command: "dagger help"