This repository was archived by the owner on Mar 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1- # syntax=docker/dockerfile:1.3-labs
1+ # syntax=docker/dockerfile:1.4
22
33FROM ghcr.io/acorn-io/images-mirror/tonistiigi/binfmt:qemu-v8.1.4 AS binfmt
44FROM ghcr.io/acorn-io/images-mirror/coredns/coredns:1.10.1 AS coredns
@@ -63,15 +63,24 @@ COPY /scripts/acorn-job-helper-init /usr/local/bin
6363COPY /scripts/acorn-job-helper-shutdown /usr/local/bin
6464COPY /scripts/acorn-job-get-output /usr/local/bin
6565COPY /scripts/k3s-config.yaml /etc/rancher/k3s/config.yaml
66+
67+ FROM base AS basewithrelease
68+ COPY acorn /usr/local/bin/acorn
69+
70+ FROM scratch AS goreleaser
71+ COPY --link --from=basewithrelease / /
6672CMD []
6773WORKDIR /wd
6874VOLUME /var/lib/buildkit
6975VOLUME /var/lib/rancher/k3s
7076STOPSIGNAL SIGTERM
7177ENTRYPOINT ["/usr/local/bin/acorn" ]
7278
73- FROM base AS goreleaser
74- COPY acorn /usr/local/bin/acorn
75-
7679FROM base
7780COPY --from=build /src/bin/acorn /usr/local/bin/acorn
81+ CMD []
82+ WORKDIR /wd
83+ VOLUME /var/lib/buildkit
84+ VOLUME /var/lib/rancher/k3s
85+ STOPSIGNAL SIGTERM
86+ ENTRYPOINT ["/usr/local/bin/acorn" ]
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ require (
99 github.com/acorn-io/aml/cli v0.0.0-20240106192317-21afc7320c77
1010 github.com/acorn-io/baaah v0.0.0-20240119160309-2a58ee757bbd
1111 github.com/acorn-io/broadcaster v0.0.0-20240105011354-bfadd4a7b45d
12- github.com/acorn-io/function-builder v0.0.0-20240111042311-041315dd7091
12+ github.com/acorn-io/function-builder v0.0.0-20240123010942-72663ff4da5d
1313 github.com/acorn-io/mink v0.0.0-20240105015834-b1f7af4fadea
1414 github.com/acorn-io/namegenerator v0.0.0-20220915160418-9e3d5a0ffe78
1515 github.com/acorn-io/schemer v0.0.0-20240105014212-9739d5485208
Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ github.com/acorn-io/broadcaster v0.0.0-20240105011354-bfadd4a7b45d h1:hfpNQkJ4I2
119119github.com/acorn-io/broadcaster v0.0.0-20240105011354-bfadd4a7b45d /go.mod h1:WF6FYrEqW0+ZtY5OKb21JhSL0aeL5VJoVrm+u0d4gOE =
120120github.com/acorn-io/cmd v0.0.0-20230929053520-ebe1b9879b38 h1:oJMGvI702ZW5L0JjJfGV9ekzU2IqqTGjmAQl4gkO6Ro =
121121github.com/acorn-io/cmd v0.0.0-20230929053520-ebe1b9879b38 /go.mod h1:bo9ONX4kagbQmXcG4bnfoK53MBFFtbUZ5fR7s9NfS+M =
122- github.com/acorn-io/function-builder v0.0.0-20240111042311-041315dd7091 h1:l+cuQsOK7aoC8VIq6C+Q98Svq9OgmzNCWuCcWhRw27w =
123- github.com/acorn-io/function-builder v0.0.0-20240111042311-041315dd7091 /go.mod h1:b60OzYlyV4fuiTw3HExgOJITsXnfm0c0uIoywz7s+Y4 =
122+ github.com/acorn-io/function-builder v0.0.0-20240123010942-72663ff4da5d h1:05AOdsXorztXfFnD/n/bUDXeyKQj6Tf1cZk9TxR4rIA =
123+ github.com/acorn-io/function-builder v0.0.0-20240123010942-72663ff4da5d /go.mod h1:b60OzYlyV4fuiTw3HExgOJITsXnfm0c0uIoywz7s+Y4 =
124124github.com/acorn-io/mink v0.0.0-20240105015834-b1f7af4fadea h1:HyH8nh7zZ7qZeWOjBGtK/iAI5gCu/c5iSnN703hlHHY =
125125github.com/acorn-io/mink v0.0.0-20240105015834-b1f7af4fadea /go.mod h1:EmoDPUYsPyBEhEpSC+LpRGUs2GeSI5nPOTa7WO7jwlc =
126126github.com/acorn-io/namegenerator v0.0.0-20220915160418-9e3d5a0ffe78 h1:5zs9L/CXNkuTdJSbhFWczAorbmx67nqlqswx5CQi7XI =
You can’t perform that action at this time.
0 commit comments