forked from fbrinker/docker-tileboard-OUTDATED
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.
This commit is contained in:
parent
632e04d300
commit
540196b488
@ -12,6 +12,7 @@ RUN mkdir /tileboard-source \
|
|||||||
&& mkdir /tileboard \
|
&& mkdir /tileboard \
|
||||||
&& ln -s /tileboard build \
|
&& ln -s /tileboard build \
|
||||||
&& yarn install \
|
&& yarn install \
|
||||||
|
&& npm install --global node-sass \
|
||||||
&& yarn run build
|
&& yarn run build
|
||||||
|
|
||||||
# Start Server
|
# Start Server
|
||||||
@ -31,4 +32,4 @@ COPY --from=dev /tileboard /tileboard
|
|||||||
# Start Server
|
# Start Server
|
||||||
WORKDIR /tileboard
|
WORKDIR /tileboard
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
ENTRYPOINT python3 -m http.server
|
ENTRYPOINT python3 -m http.server
|
||||||
|
Reference in New Issue
Block a user