diff --git a/apps/OpenSign/Dockerhubfile b/apps/OpenSign/Dockerhubfile index 48a6d8145..891790a9f 100644 --- a/apps/OpenSign/Dockerhubfile +++ b/apps/OpenSign/Dockerhubfile @@ -12,6 +12,7 @@ RUN npm install # Copy the current directory contents into the container COPY apps/OpenSign/ . +COPY microfrontends/ . COPY apps/OpenSign/.husky . # Make port 3000 available to the world outside this container diff --git a/apps/OpenSign/package.json b/apps/OpenSign/package.json index 8297c5b08..a09dbe532 100644 --- a/apps/OpenSign/package.json +++ b/apps/OpenSign/package.json @@ -41,6 +41,8 @@ "version": "curl -s https://api.github.com/repos/opensignlabs/opensign/releases/latest | grep '\"tag_name\":' | awk -F '\"' '{print $4}' > ./public/version.txt", "build": "npm run version && rm -rf public/mfbuild && npm run micro && CI=false && mf-cra build", "micro": "cd ../../microfrontends/SignDocuments && npm install && npm run build", + "docker-build": "npm run version && rm -rf public/mfbuild && npm run docker-micro && CI=false && mf-cra build", + "docker-micro": "cd ./microfrontends/SignDocuments && npm install && npm run build", "test": "react-scripts test", "eject": "react-scripts eject", "release": "standard-version",