From f448602f012f0151aeaa46aa4aeaec891123528d Mon Sep 17 00:00:00 2001 From: dcc Date: Sat, 2 Sep 2023 01:02:04 -0700 Subject: [PATCH] tagffdofof --- Dockerfile | 56 ------------------------------------------------------ docker1.sh | 14 -------------- 2 files changed, 70 deletions(-) delete mode 100644 Dockerfile delete mode 100755 docker1.sh diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 8c3ff3a..0000000 --- a/Dockerfile +++ /dev/null @@ -1,56 +0,0 @@ -ARG ELIXIR_VER=1.11.4 -ARG ERLANG_VER=24.2.1 -ARG ALPINE_VER=3.17.0 - -FROM hexpm/elixir:${ELIXIR_VER}-erlang-${ERLANG_VER}-alpine-${ALPINE_VER} as build - -COPY . . - -ENV MIX_ENV=prod - -RUN apk add git gcc g++ musl-dev make cmake file-dev &&\ - echo "import Config" > config/prod.secret.exs &&\ - mix local.hex --force &&\ - mix local.rebar --force &&\ - mix deps.get --only prod &&\ - mkdir release &&\ - mix release --path release - -FROM alpine:${ALPINE_VER} - -ARG BUILD_DATE -ARG VCS_REF - -LABEL maintainer="ops@pleroma.social" \ - org.opencontainers.image.title="pleroma" \ - org.opencontainers.image.description="Pleroma for Docker" \ - org.opencontainers.image.authors="ops@pleroma.social" \ - org.opencontainers.image.vendor="pleroma.social" \ - org.opencontainers.image.documentation="https://git.pleroma.social/pleroma/pleroma" \ - org.opencontainers.image.licenses="AGPL-3.0" \ - org.opencontainers.image.url="https://pleroma.social" \ - org.opencontainers.image.revision=$VCS_REF \ - org.opencontainers.image.created=$BUILD_DATE - -ARG HOME=/opt/pleroma -ARG DATA=/var/lib/pleroma - -RUN apk update &&\ - apk add exiftool ffmpeg imagemagick libmagic ncurses postgresql-client &&\ - adduser --system --shell /bin/false --home ${HOME} pleroma &&\ - mkdir -p ${DATA}/uploads &&\ - mkdir -p ${DATA}/static &&\ - chown -R pleroma ${DATA} &&\ - mkdir -p /etc/pleroma &&\ - chown -R pleroma /etc/pleroma - -USER pleroma - -COPY --from=build --chown=pleroma:0 /release ${HOME} - -COPY ./config/docker.exs /etc/pleroma/config.exs -COPY ./docker-entrypoint.sh ${HOME} - -EXPOSE 4000 - -ENTRYPOINT ["/opt/pleroma/docker-entrypoint.sh"] diff --git a/docker1.sh b/docker1.sh deleted file mode 100755 index 4691f68..0000000 --- a/docker1.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/ash - -set -e - -echo "-- Waiting for database..." -while ! pg_isready -U ${DB_USER:-pleroma} -d postgres://${DB_HOST:-db}:${DB_PORT:-5432}/${DB_NAME:-pleroma} -t 1; do - sleep 1s -done - -echo "-- Running migrations..." -$HOME/bin/pleroma_ctl migrate - -echo "-- Starting!" -exec $HOME/bin/pleroma start -- 2.35.8