Initial commit

This commit is contained in:
2023-11-26 16:36:39 +01:00
commit d5a30b5951
10 changed files with 2642 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM rust:1.74.0-slim-bookworm AS builder
COPY . /app
WORKDIR /app
RUN mkdir ~/.ssh
RUN apt-get update && apt-get install -y ssh && rm -rf /var/cache/apt*
RUN ssh-keyscan gitlab.nanobyte.cz >> /root/.ssh/known_hosts
RUN cargo build --release
FROM rust:1.74.0-slim-bookworm as runner
RUN mkdir /app
COPY --from=builder /app/target/release/ovlach_frontend /app
COPY ./templates /app/templates
ENTRYPOINT ["/app/ovlach_frontend"]