add apk deps
This commit is contained in:
parent
b793306f9f
commit
8b90651a18
|
@ -22,10 +22,27 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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 \
|
# install build dependencies
|
||||||
&& mkdir /home/user \
|
|
||||||
|
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
|
&& chown 1000.1000 /home/user
|
||||||
|
|
||||||
ENV HOME=/home/user
|
ENV HOME=/home/user
|
||||||
|
@ -52,11 +69,8 @@ RUN mkdir config
|
||||||
# to ensure any relevant config change will trigger the dependencies
|
# to ensure any relevant config change will trigger the dependencies
|
||||||
# to be re-compiled.
|
# to be re-compiled.
|
||||||
COPY ./services/bright/config/config.exs ./services/bright/config/${MIX_ENV}.exs config/
|
COPY ./services/bright/config/config.exs ./services/bright/config/${MIX_ENV}.exs config/
|
||||||
|
|
||||||
COPY ./services/bright/priv priv
|
COPY ./services/bright/priv priv
|
||||||
|
|
||||||
COPY ./services/bright/lib lib
|
COPY ./services/bright/lib lib
|
||||||
|
|
||||||
COPY ./services/bright/assets assets
|
COPY ./services/bright/assets assets
|
||||||
|
|
||||||
CMD [ "mix", "ecto.setup", "&&", "mix", "phx.server" ]
|
CMD [ "mix", "ecto.setup", "&&", "mix", "phx.server" ]
|
||||||
|
|
Loading…
Reference in New Issue