Commit 2a70de3e authored by Nicolas Paris's avatar Nicolas Paris
Browse files

Replace host ip within the image

parent dc1199ad
FROM nginx
ARG api_hostname
ARG api_port=5000
COPY concept_mapper_front/WebContent /usr/share/nginx/html
RUN apt update && apt install wget unzip -y
RUN echo $api_hostname
WORKDIR /usr/share/nginx/html/
RUN wget && unzip -o -d /tmp && \
mv /tmp/resources .
# replace with the host private ip to allow selenium to access it from the browser
RUN find . -type f -exec sed -i "s|http://localhost:5000/|http://$api_hostname:$api_port/|g" {} \;
RUN wget
RUN unzip -o -d /tmp
RUN mv /tmp/resources .
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment