build(aio): fix syntax error in preview server's Dockerfile

This commit is contained in:
Georgios Kalpakas 2017-05-17 17:09:33 +03:00 committed by Pete Bacon Darwin
parent 6f59a4a5b2
commit 93d27d283a
1 changed files with 2 additions and 2 deletions

View File

@ -112,8 +112,8 @@ RUN update-ca-certificates
# Set up nginx (for production and testing)
RUN sed -i -E "s|^user\s+\S+;|user $AIO_WWW_USER;|" /etc/nginx/nginx.conf
RUN [[ -d /etc/nginx/conf.d/ ]] && rm /etc/nginx/conf.d/*
RUN [[ -d /etc/nginx/sites-enabled/ ]] && rm /etc/nginx/sites-enabled/*
RUN rm -f /etc/nginx/conf.d/*
RUN rm -f /etc/nginx/sites-enabled/*
COPY nginx/aio-builds.conf /etc/nginx/conf.d/aio-builds-prod.conf
RUN sed -i "s|{{\$AIO_BUILDS_DIR}}|$AIO_BUILDS_DIR|g" /etc/nginx/conf.d/aio-builds-prod.conf