diff --git a/Dockerfile b/Dockerfile index f622c52..2d23570 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 @@ -19,6 +19,11 @@ 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/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