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

Update Dockerfile

parent 80002e8f
No related branches found
No related tags found
No related merge requests found
Pipeline #557323 passed
......@@ -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" ]
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