Update Dockerfile

This commit is contained in:
浪子 2024-12-16 11:49:59 +08:00 committed by GitHub
parent 551a563518
commit 8aece8bfd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ ARG UID=911
ARG GID=911 ARG GID=911
ENV MIX_ENV=prod ENV MIX_ENV=prod
RUN apk update && \ RUN apk update && apk upgrade && \
apk add --no-cache \ apk add --no-cache \
git gcc g++ musl-dev make cmake file-dev \ git gcc g++ musl-dev make cmake file-dev \
exiftool imagemagick libmagic ncurses \ exiftool imagemagick libmagic ncurses \
@ -23,11 +23,11 @@ WORKDIR /pleroma
# 克隆 Pleroma 仓库并切换到指定版本 # 克隆 Pleroma 仓库并切换到指定版本
RUN git clone -b stable https://git.pleroma.social/pleroma/pleroma.git . && \ RUN git clone -b stable https://git.pleroma.social/pleroma/pleroma.git . && \
git checkout ${PLEROMA_VER} \ git checkout ${PLEROMA_VER} && \
&& echo "import Mix.Config" > config/prod.secret.exs \ && echo "import Mix.Config" > config/prod.secret.exs && \
&& mix local.hex --force \ && mix local.hex --force && \
&& mix local.rebar --force \ && mix local.rebar --force && \
&& mix deps.get --only prod \ && mix deps.get --only prod && \
&& mix release --path /pleroma && mix release --path /pleroma
COPY ./config.exs /etc/pleroma/config.exs COPY ./config.exs /etc/pleroma/config.exs