fix: the docker build again

pull/34/head
Miroito 3 years ago
parent f432c45217
commit 91830d7523

@ -2,7 +2,7 @@ version: "3"
services: services:
client: client:
container_name: fast-insiders-client container_name: fast-insiders-client
image: fast-insiders-client:latest image: docker.albv.org/root/fast-insiders-client:latest
build: build:
dockerfile: ./client/Dockerfile dockerfile: ./client/Dockerfile
restart: always restart: always
@ -13,7 +13,7 @@ services:
- API_URL=http://localhost:8000 - API_URL=http://localhost:8000
server: server:
container_name: fast-insiders-server container_name: fast-insiders-server
image: fast-insiders-server:latest image: docker.albv.org/root/fast-insiders-server:latest
build: build:
dockerfile: ./server/Dockerfile dockerfile: ./server/Dockerfile
restart: always restart: always

@ -23,6 +23,9 @@ RUN cargo build --release
# prepare deployment image # prepare deployment image
FROM debian:stable-slim 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 WORKDIR /app
COPY --from=build /app/target/release/server /app/ COPY --from=build /app/target/release/server /app/

Loading…
Cancel
Save