summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2019-02-10 14:45:06 +0000
committerMonty Taylor <mordred@inaugust.com>2019-02-10 14:45:53 +0000
commitbab23a5e9be133ee37a6fdddf6ebe051011964d1 (patch)
tree0e38bcec5367994f2808d1c3c4b293e6a7bd58c3
parentb89f989055e52e2d9fe88923acbc8fd5f0019e4f (diff)
Add Dockerfile
-rw-r--r--Dockerfile39
1 files changed, 39 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..5cbdedc
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,39 @@
1# Copyright (C) 2019 Red Hat, Inc.
2#
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, either version 3 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <https://www.gnu.org/licenses/>.
15
16FROM debian:testing as builder
17
18RUN mkdir -p /output/bindep
19RUN apt-get update && apt-get install -y python3-pip && pip3 install bindep
20COPY bindep.txt /bindep.txt
21RUN cd / && bindep -l newline > /output/bindep/run.txt
22RUN apt-get install -y $(bindep -b compile)
23COPY . /src
24RUN cd /src \
25 && autoreconf -fi \
26 && ./configure \
27 && make \
28 && make install
29
30FROM debian:testing
31
32COPY --from=builder /output/bindep/run.txt /run.txt
33RUN apt-get update \
34 && apt-get install -y dumb-init $(cat /run.txt) \
35 && apt-get clean \
36 && rm -rf /var/lib/apt/lists/* /run.txt
37COPY --from=builder /usr/local /usr/local
38ENTRYPOINT ["/usr/bin/dumb-init", "--"]
39CMD ["/usr/local/bin/zuul-preview"]