Change to alpine images
All checks were successful
Build and Publish / Build and Test (push) Successful in 5m49s
All checks were successful
Build and Publish / Build and Test (push) Successful in 5m49s
This commit is contained in:
parent
a27aeb0f10
commit
ad91412661
@ -1,14 +1,14 @@
|
||||
FROM --platform=$BUILDPLATFORM debian:bullseye-slim AS builder
|
||||
FROM --platform=$BUILDPLATFORM alpine AS builder
|
||||
ARG TARGETPLATFORM
|
||||
WORKDIR /app
|
||||
COPY docker-target target
|
||||
RUN case "$TARGETPLATFORM" in \
|
||||
"linux/amd64") BINARY_PATH="target/release/toggl-bridge" ;; \
|
||||
"linux/arm64") BINARY_PATH="target/aarch64-unknown-linux-gnu/release/toggl-bridge" ;; \
|
||||
"linux/arm64") BINARY_PATH="target/aarch64-unknown-linux-musl/release/toggl-bridge" ;; \
|
||||
*) exit 1 ;; \
|
||||
esac && \
|
||||
mv "$BINARY_PATH" /usr/local/bin/toggl-bridge
|
||||
|
||||
FROM --platform=$TARGETPLATFORM debian:bullseye-slim
|
||||
FROM --platform=$TARGETPLATFORM alpine
|
||||
COPY --from=builder /usr/local/bin/toggl-bridge /usr/local/bin/
|
||||
CMD ["toggl-bridge"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user