2024-04-04 01:40:26 +00:00
|
|
|
# SPDX-FileCopyrightText: 2023 Sayantan Santra <sayantan.santra689@gmail.com>
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2024-08-28 16:37:45 +00:00
|
|
|
FROM scratch AS builder-amd64
|
2024-03-25 05:56:39 +00:00
|
|
|
COPY ./actix/target/x86_64-unknown-linux-musl/release/chhoto-url /chhoto-url
|
|
|
|
|
2024-08-28 16:37:45 +00:00
|
|
|
FROM scratch AS builder-arm64
|
2024-03-25 05:56:39 +00:00
|
|
|
COPY ./actix/target/aarch64-unknown-linux-musl/release/chhoto-url /chhoto-url
|
|
|
|
|
2024-08-28 16:37:45 +00:00
|
|
|
FROM scratch AS builder-arm
|
2024-03-25 05:56:39 +00:00
|
|
|
COPY ./actix/target/armv7-unknown-linux-musleabihf/release/chhoto-url /chhoto-url
|
|
|
|
|
|
|
|
ARG TARGETARCH
|
|
|
|
FROM builder-$TARGETARCH
|
|
|
|
COPY ./resources /resources
|
|
|
|
|
|
|
|
ENTRYPOINT ["/chhoto-url"]
|
|
|
|
|