-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 712 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ARG TARGETARCH
ARG TARGETVARIANT
FROM alpine AS base
WORKDIR /app
FROM base AS target-amd64
COPY --chmod=555 bin-releases/simon-x86_64-linux-musl /app/simon
ENTRYPOINT ["/app/simon"]
FROM base AS target-arm64
COPY --chmod=555 bin-releases/simon-aarch64-linux-musl /app/simon
ENTRYPOINT ["/app/simon"]
FROM base AS target-arm
COPY --chmod=555 bin-releases/simon-armv7-linux-musl /app/simon
ENTRYPOINT ["/app/simon"]
FROM base AS target-386
COPY --chmod=555 bin-releases/simon-i686-linux-musl /app/simon
ENTRYPOINT ["/app/simon"]
FROM base AS target-riscv64
COPY --chmod=555 bin-releases/simon-riscv64-linux-musl /app/simon
ENTRYPOINT ["/app/simon"]
# Final target stage
FROM target-${TARGETARCH} AS target