From 1d62371a6c7eed1f83d0effc37d9251ada322f9d Mon Sep 17 00:00:00 2001 From: Frederic Lavigne Date: Wed, 3 Oct 2018 10:29:43 +0200 Subject: [PATCH] listen on 8080 --- onestep.Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/onestep.Dockerfile b/onestep.Dockerfile index 719f8e9..d6c6051 100644 --- a/onestep.Dockerfile +++ b/onestep.Dockerfile @@ -1,4 +1,4 @@ -# build +# similar to Dockerfile, but uses Apache HTTPd and does not use multi-stage build FROM httpd:2.4 ARG CONTROLLER_SERVICE=http://lw-controller:8080 @@ -16,6 +16,9 @@ RUN apt-get update \ && npm install \ && npm run deploy:prod \ && rm -rf node_modules \ + && mv -f /app/dist/* /usr/local/apache2/htdocs/ \ && apt-get remove -y python build-essential nodejs curl -RUN mv /app/dist/ /usr/local/apache2/htdocs/ +# Listen on 8080 +RUN sed -i "s/Listen 80/Listen 8080/g" /usr/local/apache2/conf/httpd.conf +EXPOSE 8080