24 lines
575 B
Docker
24 lines
575 B
Docker
FROM debian:latest
|
|
|
|
# update repositories
|
|
RUN apt-get update -y
|
|
RUN apt-get upgrade -y
|
|
|
|
# install build dependencies
|
|
RUN apt-get install -y cmake gcc g++ ninja-build
|
|
# install application dependencies
|
|
RUN apt-get install -y libmpg123-dev libssl-dev portaudio19-dev
|
|
|
|
# enable sound
|
|
# RUN echo "pcm.!default pulse\nctl.!default pulse" > /root/.asoundrc
|
|
|
|
# copy the application
|
|
WORKDIR /app
|
|
COPY . /app
|
|
|
|
# build the application
|
|
RUN cmake -S . -B build -G Ninja
|
|
RUN cmake --build build
|
|
|
|
# run the application
|
|
CMD ["build/M2-PT-DRP", "--host", "::1", "--port", "15650", "--ipv6"]
|