summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Dybiec <pawel@dybiec.info>2022-12-27 15:40:10 +0000
committerPaweł Dybiec <pawel@dybiec.info>2022-12-27 15:40:10 +0000
commitcc0da9bbff342e83f523ad4ff7412875e9a9b44c (patch)
treeca8dfbef7d07cd2d3d8c9aa3c9a14571de16685b
parentUse db for static strings (diff)
[CI] Add sqlite to docker and builds
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--Dockerfile4
2 files changed, 3 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 922bd2b..8b97ff3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,7 +16,7 @@ build_and_test:
 
   stage: build
   before_script:
-    - apk add openssl openssl-dev musl-dev
+    - apk add openssl openssl-dev musl-dev sqlite
   script:
     - cargo build
     - cargo test
diff --git a/Dockerfile b/Dockerfile
index a545eb1..c34a220 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
 FROM docker.io/rust:slim-bullseye as builder
 WORKDIR /app
-RUN apt update && apt install libssl-dev pkg-config -y
+RUN apt update && apt install libssl-dev pkg-config libsqlite3-dev -y
 RUN cargo install cargo-prefetch
 RUN cargo prefetch
 COPY Cargo* /app/
@@ -8,5 +8,5 @@ COPY src /app/src
 RUN cargo build --release
 FROM docker.io/debian:bullseye-slim
 COPY --from=builder /app/target/release/vavbot /vavbot
-RUN apt update && apt install openssl ca-certificates -y
+RUN apt update && apt install openssl sqlite3 ca-certificates -y
 CMD [ "/vavbot" ]
\ No newline at end of file