From 4a0fd867f377bbe5926b2885121011bace0f0bbc Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Sat, 1 Feb 2020 10:48:01 -0500 Subject: [PATCH] Adds custom nginx configuration file --- Dockerfile | 1 + nginx.conf | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 nginx.conf diff --git a/Dockerfile b/Dockerfile index 533c610..19a1e0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,3 +14,4 @@ RUN npm install && \ ### STAGE 2: Run ### FROM nginx:alpine COPY --from=builder /crc-bpmn/dist/cr-connect-bpmn /usr/share/nginx/html/ +COPY --from=builder /crc-bpmn/nginx.conf /etc/nginx/conf.d/default.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..fd4472f --- /dev/null +++ b/nginx.conf @@ -0,0 +1,11 @@ +server { + listen 80; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri/ /index.html =404; + } + + include /etc/nginx/extra-conf.d/*.conf; +}