From 1e811e3c0415b0c88b8e4bff27a241973098e209 Mon Sep 17 00:00:00 2001 From: Marcello de Sales Date: Thu, 26 Apr 2018 17:20:29 -0700 Subject: [PATCH 1/2] Dockerfile: Multi-stage build with Node.js and Ant with Runtime in Apache/PHP Using the snippets from the following work: * https://github.com/mrorgues/dockerfiles/tree/master/har_viewer_builder * https://github.com/mrorgues/dockerfiles/tree/master/har_viewer The build will make all the necessary calls, while the runtime runs Apache with PHP as it is required. --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..37b2df8e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM node:6-wheezy as builder + +RUN apt-get update -y && \ + apt-get install -y ant + +ADD . /build + +WORKDIR /build + +RUN npm install && \ + ant build + +FROM php:apache + +MAINTAINER marcello.desales@gmail.com +LABEL github.com https://github.com/marcellodesales/harviewer + +COPY --from=builder /build/webapp-build /var/www/html + +EXPOSE 80 From ce2b6b01c43e1a09861a269176b87894fb2cdef7 Mon Sep 17 00:00:00 2001 From: Marcello de Sales Date: Wed, 6 Jun 2018 11:48:08 -0700 Subject: [PATCH 2/2] Dockerfile: Updating with Jessie image --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 37b2df8e..2706e59c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:6-wheezy as builder +FROM node:8.11.2-jessie as builder RUN apt-get update -y && \ apt-get install -y ant