fork/chhoto-url

git clone https://git.julia.blue/fork/chhoto-url

SinTan1729chg: Shipping location of the binary is now /app/chhoto-url inside container7f1745b

unicode
852 B24 linesraw
1# SPDX-FileCopyrightText: 2023-2026 Sayantan Santra <sayantan.santra689@gmail.com>
2# SPDX-License-Identifier: MIT
3
4FROM --platform=$TARGETARCH alpine AS builder-amd64
5COPY ./backend/target/x86_64-unknown-linux-musl/release/chhoto-url /app/chhoto-url
6
7FROM --platform=$TARGETARCH alpine AS builder-arm64
8COPY ./backend/target/aarch64-unknown-linux-musl/release/chhoto-url /app/chhoto-url
9
10FROM --platform=$TARGETARCH alpine AS builder-arm
11COPY ./backend/target/armv7-unknown-linux-musleabihf/release/chhoto-url /app/chhoto-url
12
13FROM --platform=$TARGETARCH alpine AS builder-riscv64
14COPY ./backend/target/riscv64gc-unknown-linux-musl/release/chhoto-url /app/chhoto-url
15
16ARG TARGETARCH
17FROM builder-$TARGETARCH
18RUN apk add --no-cache tzdata
19COPY ./frontend /app/frontend/base
20RUN mkdir -p /app/frontend/final
21
22WORKDIR /app
23ENTRYPOINT ["/app/chhoto-url"]
24