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.
This commit is contained in:
parent
e6d9dcf4bd
commit
253cc29c56
@ -39,6 +39,7 @@ RUN ./script/write_dotenv && \
|
|||||||
pip install pipenv uwsgi && \
|
pip install pipenv uwsgi && \
|
||||||
PIPENV_VENV_IN_PROJECT=1 pipenv sync && \
|
PIPENV_VENV_IN_PROJECT=1 pipenv sync && \
|
||||||
yarn install && \
|
yarn install && \
|
||||||
|
rm -r ./static/fonts/ &> /dev/null || true && \
|
||||||
cp -rf ./node_modules/uswds/src/fonts ./static/ && \
|
cp -rf ./node_modules/uswds/src/fonts ./static/ && \
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user