-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (42 loc) · 1.47 KB
/
Dockerfile
File metadata and controls
50 lines (42 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Pull base image.
FROM jlesage/baseimage-gui:ubuntu-18.04
# Install soundconverter, since it's gnome, there are a couple dbus deps to keep it happy.
RUN add-pkg xterm sudo wget curl sed fuse soundconverter dbus-x11 dconf-editor
RUN apt-get update
RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
RUN apt -y install ubuntu-restricted-extras
# Directories
RUN mkdir /storage
RUN chmod 777 /storage
RUN mkdir /output
RUN chmod 777 /output
# Copy the start script.
COPY startapp.sh /startapp.sh
# # Test files
# COPY test.ogg /storage/
# COPY test.flac /storage/
# COPY test.mp3 /storage/
# COPY test.m4a /storage/
# RUN chmod 777 /storage/*
# Define mountable directories.
VOLUME ["/config"]
VOLUME ["/storage"]
VOLUME ["/output"]
# Metadata.
LABEL \
org.label-schema.name="soundconverter" \
org.label-schema.description="Docker container for Soundconverter" \
org.label-schema.version="unknown" \
org.label-schema.vcs-url="https://github.com/8layer8/docker-soundconverter" \
org.label-schema.schema-version="1.0"
# Set the name of the application.
ENV APP_NAME="Soundconverter"
# Testing:
# docker rm docker-soundconverter-test
# docker rmi docker-soundconverter
# docker build -t docker-soundconverter .
# docker images
# docker run --rm -p 5805:5800 -name docker-soundconverter-test docker-soundconverter
# point browser at docker host ip + 5805
# like http://192.168.0.10:5805/
# or http://localhost:5805/