From 196c3764110caa4f9eebafb13ee983450cfe63d6 Mon Sep 17 00:00:00 2001 From: tehCrush Date: Fri, 15 Dec 2023 13:41:07 +0100 Subject: [PATCH 1/4] Update Dockerfile Fixing NodeJS version because otherwise there would be a conflict with supported openssl (as far as i understand the reason) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f622c52..6773fd0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # ---- Base Node ---- -FROM chekote/node as base +FROM chekote/node:12.14.1 as base # set working directory WORKDIR /data # copy project file From 660c15ed3be6be9fa288327d712f99d77ffe827b Mon Sep 17 00:00:00 2001 From: tehCrush Date: Fri, 15 Dec 2023 17:19:52 +0100 Subject: [PATCH 2/4] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6773fd0..a3227f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,4 +21,4 @@ COPY --from=dependencies /data/node_modules ./node_modules COPY . . RUN REACT_APP_DOG_API_ENV="qa" REACT_APP_DOG_API_HOST='https://dog-qa.relaydev.sh' yarn build -CMD ["/bin/bash"] +#CMD ["/bin/bash"] From bc810bc43934697e2dfa05ea8ddd0e421c7017ee Mon Sep 17 00:00:00 2001 From: tehCrush Date: Fri, 15 Dec 2023 20:08:19 +0100 Subject: [PATCH 3/4] Update Dockerfile interface is running again --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a3227f3..125d3be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,4 +21,9 @@ COPY --from=dependencies /data/node_modules ./node_modules COPY . . RUN REACT_APP_DOG_API_ENV="qa" REACT_APP_DOG_API_HOST='https://dog-qa.relaydev.sh' yarn build -#CMD ["/bin/bash"] +#CMD ["/bin/sh"] + +FROM nginx AS deploy +COPY nginx.default.conf /etc/nginx/conf.d/default.conf +COPY --from=release /data/build /usr/share/nginx/html +EXPOSE 3030 From 0193b3a47d614e9732aa03200dc0bb41726a6dc6 Mon Sep 17 00:00:00 2001 From: tehCrush Date: Fri, 15 Dec 2023 21:17:44 +0100 Subject: [PATCH 4/4] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 125d3be..2d23570 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ FROM base AS release COPY --from=dependencies /data/node_modules ./node_modules # copy app sources COPY . . -RUN REACT_APP_DOG_API_ENV="qa" REACT_APP_DOG_API_HOST='https://dog-qa.relaydev.sh' yarn build +RUN REACT_APP_DOG_API_ENV="qa" REACT_APP_DOG_API_HOST='http://192.168.178.42' yarn build #CMD ["/bin/sh"]