Place files in /etc/nginx/html not /usr/share/nginx - and I just DONT KNOW WHY.
This commit is contained in:
parent
ec0d2c96bc
commit
c325e45337
|
@ -17,7 +17,7 @@ RUN npm install && \
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
RUN set -x && apk add --update --no-cache bash libintl gettext curl
|
RUN set -x && apk add --update --no-cache bash libintl gettext curl
|
||||||
|
|
||||||
COPY --from=builder /crc-bpmn/dist/* /usr/share/nginx/html/
|
COPY --from=builder /crc-bpmn/dist/* /etc/nginx/html/
|
||||||
COPY --from=builder /crc-bpmn/nginx.conf /etc/nginx/conf.d/default.conf
|
COPY --from=builder /crc-bpmn/nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# Script for substituting environment variables
|
# Script for substituting environment variables
|
||||||
|
@ -26,9 +26,10 @@ RUN chmod +x ./entrypoint.sh
|
||||||
|
|
||||||
# Substitute environment variables in nginx configuration and index.html
|
# Substitute environment variables in nginx configuration and index.html
|
||||||
ENTRYPOINT ["./entrypoint.sh", \
|
ENTRYPOINT ["./entrypoint.sh", \
|
||||||
"/usr/share/nginx/html/index.html,/etc/nginx/conf.d/default.conf", \
|
"/etc/nginx/html/index.html,/etc/nginx/conf.d/default.conf", \
|
||||||
"PRODUCTION,API_URL,IRB_URL,HOME_ROUTE,BASE_HREF,PORT0", \
|
"PRODUCTION,API_URL,IRB_URL,HOME_ROUTE,BASE_HREF,PORT0", \
|
||||||
"/usr/share/nginx/html"]
|
"/etc/nginx/html"]
|
||||||
|
|
||||||
### STAGE 3: Profit! ###
|
### STAGE 3: Profit! ###
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "'daemon off;'"]
|
||||||
|
# CMD ["nginx", "-s", "reload"]
|
||||||
|
|
|
@ -2,7 +2,7 @@ server {
|
||||||
listen $PORT0;
|
listen $PORT0;
|
||||||
|
|
||||||
location $BASE_HREF/ {
|
location $BASE_HREF/ {
|
||||||
root /usr/share/nginx/html;
|
root /etc/nginx/html;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
try_files $uri$args $uri$args/ $BASE_HREF/index.html =404;
|
try_files $uri$args $uri$args/ $BASE_HREF/index.html =404;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue