From b714ee68924a15a532170e2e0369b9c5144ae95e Mon Sep 17 00:00:00 2001 From: alban Date: Mon, 24 Apr 2023 12:24:49 -0400 Subject: [PATCH] Fix the docker build again (#34) Co-authored-by: Miroito Reviewed-on: https://git.albv.org/alban/fast-insiders/pulls/34 --- docker-compose.yml | 4 ++-- server/Dockerfile | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 82bad65..3a4fc03 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: "3" services: client: container_name: fast-insiders-client - image: fast-insiders-client:latest + image: docker.albv.org/root/fast-insiders-client:latest build: dockerfile: ./client/Dockerfile restart: always @@ -13,7 +13,7 @@ services: - API_URL=http://localhost:8000 server: container_name: fast-insiders-server - image: fast-insiders-server:latest + image: docker.albv.org/root/fast-insiders-server:latest build: dockerfile: ./server/Dockerfile restart: always diff --git a/server/Dockerfile b/server/Dockerfile index 597cb1d..9f64c60 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -23,6 +23,9 @@ RUN cargo build --release # prepare deployment image FROM debian:stable-slim +# To accept tls/ssl certificates from thrid parties +RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates libssl-dev && rm -rf /var/lib/apt/lists/* + WORKDIR /app COPY --from=build /app/target/release/server /app/