Skip to content

Commit

Permalink
Adjust Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Rados13 committed Mar 15, 2024
1 parent 1c5a88b commit 381ec5b
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ WORKDIR /root/project

RUN source ~/.cargo/env && cargo build --release --no-default-features

FROM elixir:1.16.2-otp-25 AS build_elixir

# FROM elixir:1.16.2-otp-25 AS build_elixir
# FROM cimg/elixir:1.16.0-erlang-26.2.1 AS build_elixir
FROM membraneframeworklabs/docker_membrane:latest as build_elixir
# Set locale to UTF-8
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
Expand All @@ -43,7 +44,6 @@ RUN apt-get update \
cmake \
libssl-dev \
libsrtp2-dev \
ffmpeg \
clang-format \
libopus-dev \
pkgconf \
Expand All @@ -66,19 +66,11 @@ RUN apt-get update \
libx265-dev \
libavutil-dev

RUN cd /tmp/ \
&& wget https://downloads.sourceforge.net/opencore-amr/fdk-aac-2.0.0.tar.gz \
&& tar -xf fdk-aac-2.0.0.tar.gz && cd fdk-aac-2.0.0 \
&& ./configure --prefix=/usr --disable-static \
&& make && make install \
&& cd / \
&& rm -rf /tmp/*

ENV COMPOSITOR_PATH=/app/compositor/video_compositor

WORKDIR /app

COPY --from=builder /root/project/target/release compositor
# ENV COMPOSITOR_PATH=/app/compositor/video_compositor
# COPY --from=builder /root/project/target/release compositor


RUN mix local.hex --force && \
Expand Down

0 comments on commit 381ec5b

Please sign in to comment.