DEPLOY-550/DEPLOY-591: Adapt ACA docker image to accept full acs url (#644)

This commit is contained in:
Sergiu Vidrascu 2018-09-18 20:26:03 +03:00 committed by Denys Vuika
parent a9467dcc47
commit 3e03bd1520
2 changed files with 12 additions and 0 deletions

View File

@ -2,8 +2,13 @@ FROM nginx:stable-alpine
LABEL version="1.3"
LABEL maintainer="Denys Vuika <denys.vuika@alfresco.com>"
COPY nginx.conf /etc/nginx/nginx.conf
COPY --chown=nginx:nginx ./docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
WORKDIR /usr/share/nginx/html
COPY dist/app/ .
ENTRYPOINT [ "/docker-entrypoint.sh" ]

7
docker-entrypoint.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
if [[ $ACSURL ]]; then
sed -i s%{protocol}//{hostname}{:port}%"$ACSURL"%g /usr/share/nginx/html/app.config.json
fi
nginx -g "daemon off;"