You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
632 B
28 lines
632 B
FROM nginx:1.27.0 |
|
|
|
ADD ./dist/ /usr/share/nginx/html/ |
|
|
|
RUN rm /etc/nginx/conf.d/default.conf |
|
|
|
ADD ./nginx.conf /etc/nginx/conf.d/nginx.template |
|
|
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
|
|
|
RUN echo 'Asia/Shanghai' >/etc/timezone |
|
|
|
ENV ORIGIN $http_upgrade |
|
|
|
ENV HOST http://127.0.0.1:18200/ |
|
|
|
ENV SUB_APP_BPM http://127.0.0.1:18200/ |
|
|
|
ENV SUB_APP_WP http://127.0.0.1:18200/ |
|
|
|
ENV FILE_PREVIEW http://127.0.0.1:8012/ |
|
|
|
|
|
EXPOSE 80 |
|
|
|
|
|
WORKDIR /etc/nginx/conf.d |
|
ENTRYPOINT envsubst '${ORIGIN},${HOST},${SUB_APP_BPM},${SUB_APP_WP},${FILE_PREVIEW}' < nginx.template > default.conf && cat default.conf && nginx -g 'daemon off;'
|
|
|