From a21ca52d62d398e394d4dc39d0bcc97ad0d29360 Mon Sep 17 00:00:00 2001 From: M9713 <m9713@student.jamk.fi> Date: Fri, 22 Oct 2021 19:49:08 +0300 Subject: [PATCH] Update Dockerfile --- conduit-front/Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/conduit-front/Dockerfile b/conduit-front/Dockerfile index a481946..4b168c0 100644 --- a/conduit-front/Dockerfile +++ b/conduit-front/Dockerfile @@ -1,6 +1,9 @@ #React/Redux FROM node:14 -FROM ubuntu:latest + +### +#FROM ubuntu:latest +### WORKDIR /usr/src/app @@ -12,5 +15,8 @@ COPY . . EXPOSE 4100 -CMD apt update && apt install dnsutils -y && public_ip=$(dig +short myip.opendns.com @resolver1.opendns.com) && sed -i "s/localhost/$public_ip/g" src/agent.js && npm start -#CMD [ "npm", "start" ] +### +#CMD apt update && apt install dnsutils -y && public_ip=$(dig +short myip.opendns.com @resolver1.opendns.com) && sed -i "s/localhost/$public_ip/g" +###src/agent.js && npm start + +CMD [ "npm", "start" ] -- GitLab