2023-06-23 17:01:33 +02:00
|
|
|
FROM rust:1 as builder
|
2023-05-04 22:26:37 +02:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2023-06-23 17:01:33 +02:00
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN cargo build --release
|
|
|
|
|
|
|
|
FROM gcr.io/distroless/cc
|
|
|
|
|
|
|
|
COPY --from=builder /app/target/release/tech-bot /tech-bot
|
|
|
|
|
|
|
|
ENV DB_PATH=/app/tech-bot.db
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
VOLUME [ "/app" ]
|
|
|
|
|
|
|
|
CMD [ "/tech-bot" ]
|