get typescript working, alpinejs working, add flowbite ui framework, update dockerfile to install npm dependencies
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user