From dc5f3aa51cc60ba606ac1417e2498e5a14d5c31a Mon Sep 17 00:00:00 2001 From: Jordan Webb Date: Mon, 1 Feb 2021 19:57:23 -0600 Subject: [PATCH] Initial commit --- Dockerfile | 25 +++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f1be2fa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM ubuntu:20.04 + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + ca-certificates curl dumb-init ffmpeg imagemagick libimage-exiftool-perl libmagic-dev libncurses5 unzip && \ + apt-get clean + +# Set the flavour environment variable to the string you got in Detecting flavour section. +# For example if the flavour is `amd64-musl` the command will be +ENV FLAVOUR=amd64 + +RUN mkdir -p /var/lib/pleroma/uploads /var/lib/pleroma/static /etc/pleroma && \ + adduser --system --shell /bin/false --home /opt/pleroma pleroma && \ + chown -R pleroma /var/lib/pleroma /etc/pleroma + +USER pleroma + +# Clone the release build into a temporary directory and unpack it +RUN curl "https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/download?job=$FLAVOUR" -o /tmp/pleroma.zip && \ + unzip /tmp/pleroma.zip -d /tmp/ && \ + mv /tmp/release/* /opt/pleroma && \ + rmdir /tmp/release && \ + rm /tmp/pleroma.zip diff --git a/README.md b/README.md new file mode 100644 index 0000000..9005682 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# pleroma + +This is a (rough) Docker image for running [Pleroma](https://pleroma.social).