get typescript working, alpinejs working, add flowbite ui framework, update dockerfile to install npm dependencies

This commit is contained in:
2024-09-02 21:46:40 -04:00
parent f5c2b7d67e
commit 13c9ada901
16 changed files with 670 additions and 260 deletions

View File

@@ -51,6 +51,24 @@ COPY lib lib
COPY assets assets
# update the repository sources list
# and install dependencies
RUN apt-get update \
&& apt-get install -y curl \
&& apt-get -y autoclean
RUN mkdir /usr/local/nvm
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 20.17.0
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
# compile assets
RUN mix assets.deploy