From d51eb64c8e252aad0b51981fbde876f255dade8a Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Tue, 11 Jan 2022 23:17:18 +0000 Subject: [PATCH] Add a docker file. Runs enough to produce some output but not really tested. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3753 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- .dockerignore | 4 ++++ Dockerfile | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..703ad486 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.svn +db.sqlite +out/**/*.o +out/**/*.d diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..4478fa32 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM debian:bullseye AS build + +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + build-essential \ + libsodium-dev \ + libssl-dev + +COPY . /app +RUN make -C /app -j $(nproc) release + +FROM debian:bullseye +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + libsodium23 \ + libssl1.1 +COPY --from=build /app/out/release/tildefriends /app/out/release/tildefriends +COPY --from=build /app/apps /app/apps +COPY --from=build /app/core /app/core +WORKDIR /app +EXPOSE 12345 +CMD ["/app/out/release/tildefriends"]