Fix the docker build again (#34)

Co-authored-by: Miroito <alban.vachette@gmail.com>
Reviewed-on: #34
clippyp
alban 3 years ago
parent f432c45217
commit b714ee6892

@ -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

@ -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/

Loading…
Cancel
Save