add container image
Rust / test (push) Successful in 1m31s Details
Docker / build-push (push) Failing after 2m24s Details

This commit is contained in:
DataHearth 2023-06-23 17:01:33 +02:00
parent 9b4fd2c6f4
commit 033928db6e
No known key found for this signature in database
GPG Key ID: E88FD356ACC5F3C4
2 changed files with 24 additions and 3 deletions

View File

@ -1,2 +1,9 @@
target
.env
.env
Dockerfile
.gitignore
*.db
*.db.wal
.git*
.dockerignore
LICENSE

View File

@ -1,5 +1,19 @@
FROM rust:1.69-alpine
FROM rust:1 as builder
WORKDIR /app
COPY . .
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" ]