projects
/
ympd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec008a4
)
Adds a Dockerfile for building a lightweight Docker container based on alpine
author
Zachary Boyd
<zachary@zacharyboyd.nyc>
Sat, 23 Dec 2017 20:11:47 +0000
(12:11 -0800)
committer
Zachary Boyd
<zachary@zacharyboyd.nyc>
Sat, 23 Dec 2017 20:11:47 +0000
(12:11 -0800)
Dockerfile
[new file with mode: 0644]
patch
|
blob
diff --git a/Dockerfile
b/Dockerfile
new file mode 100644
(file)
index 0000000..
c89b804
--- /dev/null
+++ b/
Dockerfile
@@ -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
\ No newline at end of file