Skip to content

Commit

Permalink
updates Dockerfile to change how npm is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Jul 13, 2023
1 parent 9eefdb3 commit 6a57500
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ ARG UNAME=app
ARG UID=1000
ARG GID=1000

RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends \
apt-transport-https

RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -

RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends \
apt-transport-https \
nodejs \
vim-tiny

RUN gem install bundler
RUN curl -qL https://www.npmjs.com/install.sh | sh
RUN npm install -g npm

RUN groupadd -g ${GID} -o ${UNAME}
RUN useradd -m -d /app -u ${UID} -g ${GID} -o -s /bin/bash ${UNAME}
Expand Down

0 comments on commit 6a57500

Please sign in to comment.