dockerfile

This commit is contained in:
2026-06-10 19:39:25 +02:00
parent 70ce4384a2
commit c05255d29d
2 changed files with 18 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
# Build stage
FROM rust:alpine AS builder
ARG build="cargo build --release"
COPY Cargo.toml /app/Cargo.toml
COPY src /app/src
WORKDIR "/app"
RUN $build
# Runtime stage
FROM alpine:latest
ARG binary="/app/target/release/website"
ARG target="/usr/local/bin/website"
COPY --from=builder $binary $target
COPY frontend /data/frontend
ENV ROCKET_ADDRESS="0.0.0.0"
WORKDIR "/data"
CMD ["website"]