From 540196b48863ca137b56d9c08bd9821e36918f7f Mon Sep 17 00:00:00 2001 From: dev-docker Date: Sat, 15 May 2021 13:14:07 +0000 Subject: [PATCH] fix(DEV): add global node-sass This fixes the case, where you bind-mount your own tileboard source directory into the dev container. Apparently, the node-sass module is compiled for the specdific machine. This seems to result in the `node-sass` executable not being found in the container, if the `node_modules` folder was compiled on a different machine (OS?). By adding node-sass globally in the container, it can be found even with a bind-mounted `tileboard-source` directory. --- Dockerfile.nightly | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile.nightly b/Dockerfile.nightly index d05e050..e289896 100644 --- a/Dockerfile.nightly +++ b/Dockerfile.nightly @@ -12,6 +12,7 @@ RUN mkdir /tileboard-source \ && mkdir /tileboard \ && ln -s /tileboard build \ && yarn install \ + && npm install --global node-sass \ && yarn run build # Start Server @@ -31,4 +32,4 @@ COPY --from=dev /tileboard /tileboard # Start Server WORKDIR /tileboard EXPOSE 8000 -ENTRYPOINT python3 -m http.server \ No newline at end of file +ENTRYPOINT python3 -m http.server