Update Dockerfile

This commit is contained in:
浪子 2024-12-16 13:36:47 +08:00 committed by GitHub
parent f7b43d127b
commit 7a5d1fe13c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

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