From 61cf21fb205eee0949b0a4ffa6c80fc8c5fe772f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 6 Nov 2022 01:58:49 +0000 Subject: [PATCH 1/2] Dockerfile: add curl --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cd42248cae..e46bc44fdb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,7 @@ ARG HOME=/opt/pleroma ARG DATA=/var/lib/pleroma RUN apt-get update &&\ - apt-get install -y --no-install-recommends imagemagick libmagic-dev ffmpeg libimage-exiftool-perl libncurses5 postgresql-client &&\ + apt-get install -y --no-install-recommends curl imagemagick libmagic-dev ffmpeg libimage-exiftool-perl libncurses5 postgresql-client &&\ adduser --system --shell /bin/false --home ${HOME} pleroma &&\ mkdir -p ${DATA}/uploads &&\ mkdir -p ${DATA}/static &&\ From f884273bb9f966e9082d918e35b3a34bd77d2013 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 6 Nov 2022 02:00:24 +0000 Subject: [PATCH 2/2] Dockerfile: move fasttext to runtime image --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e46bc44fdb..985414d142 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ARG MIX_ENV=prod \ WORKDIR /src RUN apt-get update &&\ - apt-get install -y git elixir erlang-dev erlang-nox build-essential cmake libssl-dev libmagic-dev automake autoconf libncurses5-dev fasttext &&\ + apt-get install -y git elixir erlang-dev erlang-nox build-essential cmake libssl-dev libmagic-dev automake autoconf libncurses5-dev &&\ mix local.hex --force &&\ mix local.rebar --force @@ -40,7 +40,7 @@ ARG HOME=/opt/pleroma ARG DATA=/var/lib/pleroma RUN apt-get update &&\ - apt-get install -y --no-install-recommends curl imagemagick libmagic-dev ffmpeg libimage-exiftool-perl libncurses5 postgresql-client &&\ + apt-get install -y --no-install-recommends curl imagemagick libmagic-dev ffmpeg libimage-exiftool-perl libncurses5 postgresql-client fasttext &&\ adduser --system --shell /bin/false --home ${HOME} pleroma &&\ mkdir -p ${DATA}/uploads &&\ mkdir -p ${DATA}/static &&\