Dockerfile 606 Bytes
Newer Older
Nicolas Paris's avatar
Nicolas Paris committed
1
2
FROM nginx

Nicolas Paris's avatar
Nicolas Paris committed
3
4
5
RUN adduser --system app
USER app

6
7
ARG api_hostname
ARG api_port=5000
Nicolas Paris's avatar
Nicolas Paris committed
8
9
10
11

COPY concept_mapper_front/WebContent /usr/share/nginx/html
RUN apt update && apt install wget unzip -y

12
RUN echo $api_hostname
Nicolas Paris's avatar
Nicolas Paris committed
13
WORKDIR /usr/share/nginx/html/
14
15
16
17
18
# 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 https://github.com/SAP/openui5/releases/download/1.84.11/openui5-runtime-1.84.11.zip
RUN     unzip -o openui5-runtime-1.84.11.zip -d /tmp
RUN     mv /tmp/resources .