Fix container build
This commit is contained in:
parent
8512800838
commit
1ec14d0a2f
16
Dockerfile
16
Dockerfile
@ -22,11 +22,14 @@ ENTRYPOINT ["/tini", "--"]
|
|||||||
# Get build dependencies
|
# Get build dependencies
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update \
|
apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends git wget ca-certificates gnupg2 \
|
&& apt-get install -y --no-install-recommends apt-utils \
|
||||||
|
&& apt-get install -y --no-install-recommends git wget ca-certificates gnupg2 build-essential \
|
||||||
|
\
|
||||||
&& wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb \
|
&& wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb \
|
||||||
&& dpkg -i erlang-solutions_1.0_all.deb \
|
&& dpkg -i erlang-solutions_1.0_all.deb \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends esl-erlang elixir \
|
&& apt-get install -y --no-install-recommends esl-erlang elixir \
|
||||||
|
\
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Limit permissions
|
# Limit permissions
|
||||||
@ -64,13 +67,14 @@ RUN \
|
|||||||
&& git checkout $PLEROMA_VERSION \
|
&& git checkout $PLEROMA_VERSION \
|
||||||
&& git pull --rebase --autostash
|
&& git pull --rebase --autostash
|
||||||
|
|
||||||
|
# Precompile
|
||||||
|
RUN \
|
||||||
|
mix deps.get \
|
||||||
|
&& mix compile
|
||||||
|
|
||||||
# Insert overrides and config helper
|
# Insert overrides and config helper
|
||||||
COPY --chown=pleroma:pleroma ./docker-config.exs /docker-config.exs
|
COPY --chown=pleroma:pleroma ./docker-config.exs /docker-config.exs
|
||||||
COPY --chown=pleroma:pleroma ./custom.d /home/pleroma/pleroma
|
COPY --chown=pleroma:pleroma ./custom.d /home/pleroma/pleroma
|
||||||
|
|
||||||
# Precompile
|
|
||||||
RUN \
|
RUN \
|
||||||
ln -s /docker-config.exs config/prod.secret.exs \
|
ln -s /docker-config.exs config/prod.secret.exs \
|
||||||
&& ln -s /docker-config.exs config/dev.secret.exs \
|
&& ln -s /docker-config.exs config/dev.secret.exs
|
||||||
&& mix deps.get \
|
|
||||||
&& mix compile
|
|
||||||
|
Loading…
Reference in New Issue
Block a user