diff --git a/conduit-front/Dockerfile b/conduit-front/Dockerfile
index e3f94175596a86b0f3557368715a6614ee778507..e15e4b418b39aaf322aacb90589a6e01d86176ff 100644
--- a/conduit-front/Dockerfile
+++ b/conduit-front/Dockerfile
@@ -6,12 +6,12 @@ WORKDIR /usr/src/app
 
 # Install app dependecies
 COPY package*.json ./
-COPY public_ip.sh ./
-RUN bash public_ip.sh
 RUN npm install
 
 # Bundle app source
 COPY . .
 
 EXPOSE 4100
-CMD [ "npm", "start" ]
+
+CMD IP=$(curl https://api.ipify.org) && sed -i "s/localhost/$IP/g" src/agent.js && npm start
+# CMD [ "npm", "start" ]