A container image for a web-site preview proxy for Zuul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. FROM debian:testing as builder
  16. RUN mkdir -p /output/bindep
  17. RUN apt-get update && apt-get install -y python3-pip git && pip3 install bindep
  18. COPY bindep.txt /bindep.txt
  19. RUN cd / && bindep -l newline > /output/bindep/run.txt
  20. RUN apt-get install -y $(bindep -b compile)
  21. COPY . /src
  22. RUN cd /src \
  23. && autoreconf -fi \
  24. && ./configure --with-comment=$(git describe --always) \
  25. && make \
  26. && make install
  27. FROM debian:testing
  28. COPY --from=builder /output/bindep/run.txt /run.txt
  29. RUN apt-get update \
  30. && apt-get install -y dumb-init apache2 $(cat /run.txt) \
  31. && apt-get clean \
  32. && rm -rf /var/lib/apt/lists/* /run.txt \
  33. && a2enmod rewrite proxy proxy_http
  34. COPY ./vhost.conf /etc/apache2/sites-available/000-default.conf
  35. COPY --from=builder /usr/local /usr/local
  36. EXPOSE 80
  37. ENTRYPOINT ["/usr/bin/dumb-init", "--"]
  38. CMD ["/usr/sbin/apachectl", "-DFOREGROUND", "-e", "info"]