Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion builder/docker/grain/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM suborbital/subo:dev as subo

FROM ghcr.io/grain-lang/grain:0.4-slim
FROM ghcr.io/grain-lang/grain:0.5-slim
WORKDIR /root/runnable
COPY --from=subo /go/bin/subo /usr/local/bin/subo

# Necessary to build Grain runnables
RUN apt-get update && apt-get install curl -y && rm -rf /var/lib/apt/lists/*

RUN mkdir /root/suborbital
4 changes: 2 additions & 2 deletions builder/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var nativeCommandsForLang = map[string]map[string][]string{
"tinygo build -o {{ .Name }}.wasm -target wasi .",
},
"grain": {
"grain compile index.gr -I _lib -o {{ .Name }}.wasm",
"grain compile index.gr --release -I _lib -o {{ .Name }}.wasm",
},
"typescript": {
"npm run build",
Expand Down Expand Up @@ -68,7 +68,7 @@ var nativeCommandsForLang = map[string]map[string][]string{
"tinygo build -o {{ .Name }}.wasm -target wasi .",
},
"grain": {
"grain compile index.gr -I _lib -o {{ .Name }}.wasm",
"grain compile index.gr --release -I _lib -o {{ .Name }}.wasm",
},
"typescript": {
"npm run build",
Expand Down