17 lines
536 B
Docker
17 lines
536 B
Docker
# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
FROM rust:latest as rust
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN cargo build --release
|
|
|
|
FROM debian:bookworm as ftest
|
|
LABEL org.opencontainers.image.source https://git.batsense.net/forgeflux/ftest
|
|
RUN useradd -ms /bin/bash -u 1001 ftest
|
|
WORKDIR /home/ftest
|
|
COPY --from=rust /src/target/release/ftest /usr/local/bin/
|
|
COPY --from=rust /src/config/default.toml /etc/ftest/config.toml
|
|
USER ftest
|
|
CMD [ "/usr/local/bin/ftest" ]
|