From fd8f64e93ae174ee1a275fb9704256d3cad96723 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sun, 14 May 2023 16:32:44 -0700 Subject: [PATCH] Fix frontend dockerized env in windows --- .github/workflows/client-image.yml | 4 +--- nodeapp/Dockerfile | 3 +++ nodeapp/static | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 120000 nodeapp/static diff --git a/.github/workflows/client-image.yml b/.github/workflows/client-image.yml index d2cccf7b..ca6d6ab0 100644 --- a/.github/workflows/client-image.yml +++ b/.github/workflows/client-image.yml @@ -22,9 +22,7 @@ jobs: - uses: actions/checkout@v3 - name: 'Copy Static' # Needed since Github actions does not support symlinks - run: | - rm nodeapp/static - cp -r frontend/static nodeapp/static + run: cp -r frontend/static nodeapp/static - name: 'Download main.js Artifact' if: inputs.semver == '' # Only if workflow fired from frontend-build.yml diff --git a/nodeapp/Dockerfile b/nodeapp/Dockerfile index d351b6a7..d3e5d021 100644 --- a/nodeapp/Dockerfile +++ b/nodeapp/Dockerfile @@ -2,6 +2,9 @@ FROM alpine:3.18.0 LABEL maintainer="Reckless_Satoshi https://github.com/reckless-satoshi" +# Needs a copy or symlink of /frontend/static in /nodeapp/static +# Github client release workflow copies /frontend/static here + RUN mkdir -p /usr/src/robosats WORKDIR /usr/src/robosats diff --git a/nodeapp/static b/nodeapp/static deleted file mode 120000 index 9653c34d..00000000 --- a/nodeapp/static +++ /dev/null @@ -1 +0,0 @@ -../frontend/static \ No newline at end of file