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
|
ARG TARGETPLATFORM
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY docker-target target
|
COPY docker-target target
|
||||||
RUN case "$TARGETPLATFORM" in \
|
RUN case "$TARGETPLATFORM" in \
|
||||||
"linux/amd64") BINARY_PATH="target/release/toggl-bridge" ;; \
|
"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 ;; \
|
*) exit 1 ;; \
|
||||||
esac && \
|
esac && \
|
||||||
mv "$BINARY_PATH" /usr/local/bin/toggl-bridge
|
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/
|
COPY --from=builder /usr/local/bin/toggl-bridge /usr/local/bin/
|
||||||
CMD ["toggl-bridge"]
|
CMD ["toggl-bridge"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user