From 253cc29c5694a1f6489f9e57022d6123b7ba894f Mon Sep 17 00:00:00 2001 From: dandds Date: Thu, 7 Nov 2019 15:22:16 -0500 Subject: [PATCH] Force removal of existing fonts symlink in Docker build. For local development, we symlink the USWDS fonts from the npm installed copy into our static directory. This causes problems for the Docker build because it is not expecting to find a pre-existing "static/fonts" directory. This forcibly removes any existing "static/fonts" directory to fix the issue. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 04b33442..bf9b26be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,6 +39,7 @@ RUN ./script/write_dotenv && \ pip install pipenv uwsgi && \ PIPENV_VENV_IN_PROJECT=1 pipenv sync && \ yarn install && \ + rm -r ./static/fonts/ &> /dev/null || true && \ cp -rf ./node_modules/uswds/src/fonts ./static/ && \ yarn build