11 lines
353 B
Docker
11 lines
353 B
Docker
ARG NGINX_VERSION
|
|
FROM nginx:${NGINX_VERSION} as base
|
|
|
|
COPY --chown=nginx:nginx ./images/nginx/conf.d/default.conf /etc/nginx/conf.d
|
|
|
|
ARG APP_CODE_PATH
|
|
RUN sed -i "s#__NGINX_ROOT_NEW;#$APP_CODE_PATH/new/web;#" /etc/nginx/conf.d/default.conf
|
|
RUN sed -i "s#__NGINX_ROOT_OLD;#$APP_CODE_PATH/old/public;#" /etc/nginx/conf.d/default.conf
|
|
|
|
FROM base as local
|