add container image
This commit is contained in:
parent
9b4fd2c6f4
commit
033928db6e
|
@ -1,2 +1,9 @@
|
||||||
target
|
target
|
||||||
.env
|
.env
|
||||||
|
Dockerfile
|
||||||
|
.gitignore
|
||||||
|
*.db
|
||||||
|
*.db.wal
|
||||||
|
.git*
|
||||||
|
.dockerignore
|
||||||
|
LICENSE
|
18
Dockerfile
18
Dockerfile
|
@ -1,5 +1,19 @@
|
||||||
FROM rust:1.69-alpine
|
FROM rust:1 as builder
|
||||||
|
|
||||||
WORKDIR /app
|
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" ]
|
Loading…
Reference in New Issue