Compare commits

...

2 Commits

Author SHA1 Message Date
Tom Alexander
aeca958cef
Add back in docker targets.
All checks were successful
clippy Build clippy has succeeded
rust-test Build rust-test has succeeded
build Build build has succeeded
format Build format has succeeded
2024-10-20 23:11:32 -04:00
Tom Alexander
495a3c0b4e
Use linked copy. 2024-10-20 23:04:45 -04:00
5 changed files with 10 additions and 2 deletions

View File

@ -114,6 +114,8 @@ spec:
value: $(params.path-to-dockerfile)
- name: EXTRA_ARGS
value:
- "--opt"
- "target=$(params.target-name)"
- --import-cache
- "type=registry,ref=$(params.image-name):buildcache"
- --export-cache

View File

@ -114,6 +114,8 @@ spec:
value: $(params.path-to-dockerfile)
- name: EXTRA_ARGS
value:
- "--opt"
- "target=$(params.target-name)"
- --import-cache
- "type=registry,ref=$(params.image-name):buildcache"
- --export-cache

View File

@ -114,6 +114,8 @@ spec:
value: $(params.path-to-dockerfile)
- name: EXTRA_ARGS
value:
- "--opt"
- "target=$(params.target-name)"
- --import-cache
- "type=registry,ref=$(params.image-name):buildcache"
- --export-cache

View File

@ -114,6 +114,8 @@ spec:
value: $(params.path-to-dockerfile)
- name: EXTRA_ARGS
value:
- "--opt"
- "target=$(params.target-name)"
- --import-cache
- "type=registry,ref=$(params.image-name):buildcache"
- --export-cache

View File

@ -7,10 +7,10 @@ RUN apk add --no-cache musl-dev
RUN mkdir /root/natter
WORKDIR /root/natter
COPY . .
COPY --link . .
# TODO: Add static build, which currently errors due to proc_macro. RUSTFLAGS="-C target-feature=+crt-static"
RUN --mount=type=tmpfs,target=/tmp --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked CARGO_TARGET_DIR=/target cargo build --profile release-lto
FROM alpine:$ALPINE_VERSION AS runner
COPY --from=builder /target/release-lto/natter /usr/bin/
COPY --link --from=builder /target/release-lto/natter /usr/bin/