Skip to content
Snippets Groups Projects
Commit a21ca52d authored by M9713's avatar M9713
Browse files

Update Dockerfile

parent 7911d1a8
No related branches found
No related tags found
No related merge requests found
Pipeline #442037 passed
#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" ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment