mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-24 17:56:49 +00:00
19 lines
535 B
Docker
19 lines
535 B
Docker
# SPDX-FileCopyrightText: 2023 Sayantan Santra <sayantan.santra689@gmail.com>
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
FROM scratch AS builder-amd64
|
|
COPY ./actix/target/x86_64-unknown-linux-musl/release/chhoto-url /chhoto-url
|
|
|
|
FROM scratch AS builder-arm64
|
|
COPY ./actix/target/aarch64-unknown-linux-musl/release/chhoto-url /chhoto-url
|
|
|
|
FROM scratch AS builder-arm
|
|
COPY ./actix/target/armv7-unknown-linux-musleabihf/release/chhoto-url /chhoto-url
|
|
|
|
ARG TARGETARCH
|
|
FROM builder-$TARGETARCH
|
|
COPY ./resources /resources
|
|
|
|
ENTRYPOINT ["/chhoto-url"]
|
|
|