forked from grundic/jamulus-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (33 loc) · 1009 Bytes
/
Copy pathDockerfile
File metadata and controls
41 lines (33 loc) · 1009 Bytes
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
FROM alpine:3.11 as builder
ENV JAMULUS_VERSION 3_6_2
RUN \
echo "**** updating system packages ****" && \
apk update
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual .build-dependencies \
build-base \
wget \
qt5-qtbase-dev \
qt5-qttools-dev \
qtchooser
WORKDIR /tmp
RUN \
echo "**** getting source code ****" && \
wget "https://github.com/corrados/jamulus/archive/r${JAMULUS_VERSION}.tar.gz" && \
tar xzf r${JAMULUS_VERSION}.tar.gz
# Github directory format for tar.gz export
WORKDIR /tmp/jamulus-r${JAMULUS_VERSION}
RUN \
echo "**** compiling source code ****" && \
qmake "CONFIG+=nosound headless" Jamulus.pro && \
make clean && \
make && \
cp Jamulus /usr/local/bin/ && \
rm -rf /tmp/* && \
apk del .build-dependencies
FROM alpine:3.11
RUN apk add --update --no-cache \
qt5-qtbase-x11 icu-libs tzdata
COPY --from=builder /usr/local/bin/Jamulus /usr/local/bin/Jamulus
ENTRYPOINT ["Jamulus"]