Updated the readme, docker files, and makefile

This commit is contained in:
2024-09-05 12:11:54 -04:00
parent d08800f9e0
commit 399eb8a29d
5 changed files with 41 additions and 38 deletions

View File

@@ -11,18 +11,6 @@ COPY Cargo.toml ./
RUN apt-get update && apt-get install -y cmake
RUN cargo build --release
# ======
# Keys
# ======
FROM debian:bookworm-slim as keys
WORKDIR /keys
RUN apt-get update && apt-get install -y openssl libpq-dev
RUN openssl genrsa -out private_key.pem 4096
RUN openssl rsa -in private_key.pem -pubout -outform PEM -out public_key.pem
RUN chmod 600 private_key.pem
RUN chmod 644 public_key.pem
# ==========
# Packages
# ==========
@@ -61,7 +49,6 @@ USER root
COPY --from=builder /builder/target/release/service /usr/local/bin/service
COPY --from=packages /packages /usr/bin
COPY --from=keys /keys /keys
RUN apt-get update && apt-get install -y libc6 libc6-dev libopus-dev libpq5 libpq-dev python3-pip ffmpeg