add apk deps

This commit is contained in:
CJ_Clippy 2025-01-11 10:50:36 -08:00
parent b793306f9f
commit 8b90651a18
1 changed files with 21 additions and 7 deletions

View File

@ -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" ]