diff --git a/.github/workflows/manual-deploy-obscuro-scan-3.yml b/.github/workflows/manual-deploy-obscuro-scan-3.yml index d33627527e..2cdba7bd49 100644 --- a/.github/workflows/manual-deploy-obscuro-scan-3.yml +++ b/.github/workflows/manual-deploy-obscuro-scan-3.yml @@ -1,7 +1,7 @@ # Deploys Obscuro Scan on Azure for Testnet # Builds the Obscuro Scan image, pushes the image to dockerhub and starts the Obscuro Scan on Azure -name: "[M] Deploy Obscuro Scan 2 Testnet" +name: "[M] Deploy Obscuro Scan 3 Testnet" run-name: "[M] Deploy Obscuro Scan Testnet ( ${{ github.event.inputs.testnet_type }} )" on: workflow_dispatch: @@ -46,7 +46,7 @@ jobs: - name: Build and Push Docker FE Image run: | - DOCKER_BUILDKIT=1 docker build -t ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }} -f ./tools/obscuroscan_v2/frontend/Dockerfile . + DOCKER_BUILDKIT=1 docker build -t ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }} -f ./tools/obscuroscan_v3/frontend/Dockerfile . docker push ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }} - name: Build and Push Docker API Image @@ -64,7 +64,7 @@ jobs: location: "uksouth" restart-policy: "Never" environment-variables: NEXT_PUBLIC_API_HOST=https://${{ github.event.inputs.testnet_type }}-api.obscuroscan.io NEXT_PUBLIC_FE_VERSION=${{ GITHUB.RUN_NUMBER }}-${{ GITHUB.SHA }} - command-line: npm run serve-prod + command-line: npm run start ports: "80" cpu: 2 memory: 2 diff --git a/tools/obscuroscan_v3/frontend/Dockerfile b/tools/obscuroscan_v3/frontend/Dockerfile new file mode 100644 index 0000000000..984a871198 --- /dev/null +++ b/tools/obscuroscan_v3/frontend/Dockerfile @@ -0,0 +1,9 @@ +FROM node:18-buster as runner +# setup container data structure +RUN mkdir -p /home/obscuro/go-obscuro/tools/obscuroscan_v3/ +COPY ./tools/obscuroscan_v3/frontend /home/obscuro/go-obscuro/tools/obscuroscan_v3/frontend + +WORKDIR /home/obscuro/go-obscuro/tools/obscuroscan_v3/frontend +RUN npm install && npm install http-server -g + +EXPOSE 80 \ No newline at end of file