mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
DEPLOY-550/DEPLOY-591: Adapt ACA docker image to accept full acs url (#644)
This commit is contained in:
committed by
Denys Vuika
parent
a9467dcc47
commit
3e03bd1520
@@ -2,8 +2,13 @@ FROM nginx:stable-alpine
|
|||||||
LABEL version="1.3"
|
LABEL version="1.3"
|
||||||
LABEL maintainer="Denys Vuika <denys.vuika@alfresco.com>"
|
LABEL maintainer="Denys Vuika <denys.vuika@alfresco.com>"
|
||||||
|
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
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
|
WORKDIR /usr/share/nginx/html
|
||||||
COPY dist/app/ .
|
COPY dist/app/ .
|
||||||
|
|
||||||
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||||
|
|||||||
@@ -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;"
|
||||||
Reference in New Issue
Block a user