ftest/Dockerfile
Aravinth Manivannan b98f99eab5
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
feat: enabel CI and publish docker img and bin
2023-10-05 01:29:10 +05:30

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" ]