-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (28 loc) · 842 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
40
41
FROM ubuntu:18.04 AS build
# RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
ARG DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && \
apt-get -y install \
tzdata \
build-essential \
cmake \
libsndfile1-dev \
libasound2-dev \
libboost-all-dev
COPY ./src /src/src
COPY ./thirdparty /src/thirdparty
COPY ./CMakeLists.txt /src
RUN cd /src && \
cmake . && make
FROM ubuntu:18.04
WORKDIR /opt/wavplayeralsa
COPY --from=build /src/wavplayeralsa ./
RUN apt-get update && \
apt-get install -y \
libsndfile1 \
libasound2 \
libboost-system1.65.1 \
libboost-filesystem1.65.1
EXPOSE 80
EXPOSE 9002
ENTRYPOINT ["./wavplayeralsa", "-d", "/wav_files", "--http_listen_port", "80", "--ws_listen_port", "9002"]