Update Dockerfile
This commit is contained in:
+6
-10
@@ -22,16 +22,12 @@ 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 \
|
||||||
# 配置 Mix 并构建 Release
|
&& mix local.hex --force \
|
||||||
RUN echo "import Mix.Config" > config/prod.secret.exs
|
&& mix local.rebar --force \
|
||||||
|
&& mix deps.get --only prod \
|
||||||
# 逐步安装依赖并构建 Release
|
&& mix release --path /pleroma
|
||||||
RUN mix local.hex --force && \
|
|
||||||
mix local.rebar --force && \
|
|
||||||
mix deps.get --only prod && \
|
|
||||||
mix release --path /pleroma
|
|
||||||
|
|
||||||
COPY ./config.exs /etc/pleroma/config.exs
|
COPY ./config.exs /etc/pleroma/config.exs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user