hangar18/images/rest/Dockerfile

17 lines
463 B
Docker

FROM hangar18_frontend
MAINTAINER Michał "rysiek" Woźniak <rysiek@hackerspace.pl>
ENV APP_NAME "rest"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends git wkhtmltopdf
RUN mkdir /opt/rest \
&& echo "<h1>PHP-FPM: rest</h1><?php echo phpinfo(); ?>" > /opt/rest/index.php \
&& chown -R www-data:www-data /opt/rest
RUN apt-get purge -y git \
&& apt-get autoremove -y
# needed for nginx
VOLUME ["/opt/rest/"]