From c15a7785ab896d34d9b3b1bdb978a6731cc5018e Mon Sep 17 00:00:00 2001 From: Andreas Dueren Date: Fri, 20 Jun 2025 07:57:45 -0600 Subject: [PATCH] Fix Dockerfile with proper Erlang/Elixir installation --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 71451f8..11950e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,18 +4,18 @@ FROM cloudron/base:4.2.0 RUN mkdir -p /app/code /app/data WORKDIR /app/code -# Install Elixir and dependencies -RUN curl -fSL https://github.com/elixir-lang/elixir/releases/download/v1.15.7/elixir-otp-26.zip -o elixir.zip \ - && unzip elixir.zip -d /opt/elixir \ - && rm elixir.zip \ - && ln -s /opt/elixir/bin/* /usr/local/bin/ \ +# Install Erlang and Elixir +RUN apt-get update \ + && apt-get install -y wget gnupg \ + && wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb \ + && dpkg -i erlang-solutions_2.0_all.deb \ && apt-get update \ + && apt-get install -y erlang-dev erlang-parsetools erlang-xmerl elixir \ && apt-get install -y git build-essential cmake nodejs npm postgresql-client \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* erlang-solutions_2.0_all.deb # Set environment variables ENV MIX_ENV=prod -ENV PATH="/opt/elixir/bin:$PATH" # Clone and build Keila RUN git clone --depth 1 --branch v0.14.7 https://github.com/pentacent/keila.git . \