From 8b90651a18d73b9ce8b2516c6c21b5c1a90149e4 Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Sat, 11 Jan 2025 10:50:36 -0800 Subject: [PATCH] add apk deps --- dockerfiles/bright.dockerfile | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/dockerfiles/bright.dockerfile b/dockerfiles/bright.dockerfile index 9ab2b2b..a4358a9 100644 --- a/dockerfiles/bright.dockerfile +++ b/dockerfiles/bright.dockerfile @@ -22,11 +22,28 @@ -FROM elixir:1.17.2-alpine AS dev +FROM elixir:1.17.3-alpine AS dev +# FROM hexpm/elixir:1.17.3-erlang-27.1.2-debian-bullseye-20241202-slim AS dev -RUN apk add --no-cache git gcc make inotify-tools erlang-dev \ - && mkdir /home/user \ - && chown 1000.1000 /home/user +# install build dependencies + +RUN \ + apk add --no-cache \ + build-base \ + npm \ + git \ + python3 \ + make \ + cmake \ + openssl-dev \ + libsrtp-dev \ + ffmpeg-dev \ + clang-dev \ + inotify-tools + +RUN \ + mkdir /home/user \ + && chown 1000.1000 /home/user ENV HOME=/home/user USER 1000:1000 @@ -52,11 +69,8 @@ RUN mkdir config # to ensure any relevant config change will trigger the dependencies # to be re-compiled. COPY ./services/bright/config/config.exs ./services/bright/config/${MIX_ENV}.exs config/ - COPY ./services/bright/priv priv - COPY ./services/bright/lib lib - COPY ./services/bright/assets assets CMD [ "mix", "ecto.setup", "&&", "mix", "phx.server" ]