1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-11-24 05:47:17 +00:00

Adds a Dockerfile for building a lightweight Docker container based on alpine

This commit is contained in:
Zachary Boyd 2017-12-23 12:11:47 -08:00
parent ec008a4995
commit 02ab7df3c6

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM alpine:3.5
WORKDIR /app/build
COPY . /app
RUN apk add --no-cache g++ make cmake libmpdclient-dev openssl-dev
RUN cmake ..
RUN make
FROM alpine:3.5
RUN apk add --no-cache libmpdclient openssl
EXPOSE 8080
COPY --from=0 /app/build/ympd /usr/bin/ympd
COPY --from=0 /app/build/mkdata /usr/bin/mkdata
CMD ympd