@@ -88,6 +88,8 @@ ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
8888ENV npm_config_loglevel warn
8989# allow installing when the main user is root
9090ENV npm_config_unsafe_perm true
91+ # disable NPM funding messages
92+ ENV npm_config_fund false
9193
9294# Set locale to en_US.UTF-8
9395RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment && \
@@ -99,7 +101,7 @@ RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment && \
99101ENV LC_ALL en_US.UTF-8
100102
101103# Install bower
102- RUN npm install -g bower
104+ RUN npm install -g bower grunt-cli
103105
104106# Install idnits
105107ADD https://raw.githubusercontent.com/ietf-tools/idnits-mirror/main/idnits /usr/local/bin/
@@ -116,10 +118,21 @@ RUN sed -i '/imklog/s/^/#/' /etc/rsyslog.conf
116118# Colorize the bash shell
117119RUN sed -i 's/#force_color_prompt=/force_color_prompt=/' /root/.bashrc
118120
121+ ADD https://raw.githubusercontent.com/eficode/wait-for/v2.1.3/wait-for /usr/local/bin/
122+ RUN chmod +rx /usr/local/bin/wait-for
123+
119124# Copy the startup file
120125COPY docker/scripts/app-init.sh /docker-init.sh
121126RUN sed -i 's/\r $//' /docker-init.sh && \
122127 chmod +x /docker-init.sh
123128
124- WORKDIR /root/src
129+ # Create workspace
130+ RUN mkdir -p /workspace
131+ WORKDIR /workspace
132+
133+ # Install NPM modules
134+ COPY package.json package.json
135+ RUN npm install --no-audit
136+ RUN rm -f package.json package-lock.json
137+
125138# ENTRYPOINT [ "/docker-init.sh" ]
0 commit comments