Initial commit

This commit is contained in:
Manuel 2023-09-12 22:00:49 +02:00
commit 96ff13057f
Signed by: Manuel
GPG key ID: 4085037435E1F07A
15 changed files with 806 additions and 0 deletions

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM rust:alpine as build
ENV RUSTFLAGS='-C target-feature=-crt-static'
WORKDIR /app
COPY . .
RUN apk add --no-cache musl-dev
RUN cargo install --path . -j $(nproc)
FROM alpine:latest
COPY --from=build /usr/local/cargo/bin/$REPO_NAME /app/$REPO_NAME
WORKDIR /app
RUN apk add --no-cache libgcc
CMD ["./${REPO_NAME}"]