Skip to content

Commit

Permalink
add ffmpeg and lame to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
matreyes committed Jun 21, 2022
1 parent 13386d1 commit 238681c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ RUN npm install --global yarn
RUN apt install -y inotify-tools

RUN mix local.hex --force
RUN apt-get install -y ffmpeg
RUN apt install -y ffmpeg
RUN apt install -y libmad0-dev libid3tag0-dev libsndfile1-dev libgd-dev
RUN apt install -y lame

WORKDIR /app
5 changes: 4 additions & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: "3.7"

services:

db:
image: postgres:14.3
restart: always
Expand All @@ -10,11 +12,12 @@ services:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data

rauversion-phx:
environment:
PORT: 4000
DB_HOST: db
MIX_BUILD_ROOT: /opt/elixir-artifacts/_build
MIX_BUILD_ROOT: /opt/elixir-artifacts/_build # Moves build and deps out of the workspace for performance
MIX_DEPS_PATH: /opt/elixir-artifacts/deps
build:
context: .
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ RUN npm install --global yarn
RUN apt install -y inotify-tools

RUN mix local.hex --force
RUN apt-get install -y ffmpeg
RUN apt install -y ffmpeg
RUN apt install -y libmad0-dev libid3tag0-dev libsndfile1-dev libgd-dev
RUN apt install -y lame

WORKDIR /app
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Rauversion is an open source music sharing platform.
Rauversion is built on Elixir with Phoenix framework.

## setup

You can develop directly in a container with [vscode devcontainer](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) or [neovim devcontainer](https://github.com/jamestthompson3/nvim-remote-containers)

To start your Phoenix server:

* Install dependencies with `mix deps.get`
Expand Down

0 comments on commit 238681c

Please sign in to comment.