-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile
39 lines (32 loc) · 950 Bytes
/
Dockerfile
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
FROM alpine:3.11 as builder
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/jamulussoftware/jamulus/archive/latest.tar.gz" && \
tar xzf latest.tar.gz
# Github directory format for tar.gz export
WORKDIR /tmp/jamulus-latest
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"]