initial rust commit

This commit is contained in:
Aaro Koivukangas
2026-01-14 23:34:24 +02:00
parent c80c76c9b9
commit 3403eca44a
5 changed files with 36 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM alpine:3.23 AS builder
WORKDIR /app
COPY . .
WORKDIR /app/compiler
RUN cargo build --release
CMD ["cargo", "run", "--release"]
FROM alpine:3.23 AS runner
# RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /app/compiler/target/release/compiler .
CMD ["./compiler"]