mirror of
https://github.com/iritmaximus/compilers.git
synced 2026-10-12 19:13:35 +03:00
initial rust commit
This commit is contained in:
+19
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user