diff --git a/Dockerfile b/Dockerfile index c06d497..b9547fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM rust:1.68 AS bin-builder RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \ - apt-get install clang llvm pkg-config nettle-dev -y + apt-get install clang nettle-dev -y COPY backend . RUN cargo build --release @@ -20,10 +20,7 @@ RUN mv dist assets/webpage FROM debian:bullseye-slim WORKDIR /simplewkd -RUN export DEBIAN_FRONTEND=noninteractive && \ - apt-get update && \ - apt-get install clang llvm pkg-config nettle-dev -y && \ - rm -rf /var/lib/apt/lists/* && adduser --no-create-home simplewkd && \ +RUN adduser --no-create-home simplewkd && \ chown -R simplewkd:simplewkd /simplewkd && \ chmod -R 777 /simplewkd USER simplewkd diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b1a5595 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3' +services: + keyserver: + image: "simple-wkd" + restart: always + ports: + - 8080:8080 + environment: + - RUST_LOG=debug + volumes: + - ./config.toml:/simplewkd/config.toml + - wkd-data:/simplewkd/data + - wkd-logs:/simplewkd/logs + +volumes: + wkd-data: + wkd-logs: \ No newline at end of file