Skip to content

Commit

Permalink
Docker image: multiple improvements
Browse files Browse the repository at this point in the history
Use the ffmpeg binary from the apt repository when building the Docker
image.

We also add some minor information on the docker-compose file and the
README.

Related to #27
  • Loading branch information
DocMarty84 committed Aug 1, 2019
1 parent d565313 commit a102f83
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extra/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN set -x; \
apt-get install -y --no-install-recommends -qq \
adduser \
build-essential \
ffmpeg \
libtag1-dev \
lsb-base \
mediainfo \
Expand Down Expand Up @@ -81,7 +82,6 @@ RUN set -x; \
tar xfz koozic-*.tar.gz && \
rm -rf koozic-*.tar.gz
RUN set -x; \
tar xfz koozic/extra/ffmpeg/ffmpeg-*-64bit.tar.gz -C /usr/local/bin && \
mv koozic /usr/local/ && \
chown -R koozic /usr/local/koozic

Expand Down
3 changes: 1 addition & 2 deletions extra/docker/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
This folder provides a basic Docker configuration using Docker-compose in order to run a fully
functional KooZic installation. It includes:
- Ubuntu 18.04
- KooZic 2.0.0
- FFmpeg 4.1
- KooZic v2
- PostgreSQL from Docker hub

# Set up containers
Expand Down
7 changes: 7 additions & 0 deletions extra/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ services:
app:
container_name: koozic_app
restart: always

# Pull the pre-built image from the server:
image: docmarty84/koozic
# Build the image locally (useful to customize the entrypoint.sh file):
# build: .
# image: koozic_app:latest

# Change '/music' to the actual location of your music.
volumes:
- koozic_app:/home/koozic/.local
- /music:/mnt/host:ro
Expand Down

0 comments on commit a102f83

Please sign in to comment.