Skip to content

Commit

Permalink
Fix NPM bug, push to MAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
ideen1 committed Nov 23, 2024
1 parent dc3f436 commit a41ac25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ USER root
WORKDIR /opt/helios-backend/src

ENV NODE_VERSION [email protected]
ENV NPM_VERSION npm@10.2.4
ENV NPM_VERSION npm@10.5.0

# Add custom user id
RUN microdnf install util-linux
Expand All @@ -17,7 +17,7 @@ RUN groupadd --gid 1001 solarcar-user \

# Remove old npm cached files and update version of npm to a node compatible version
RUN npm cache clean -force \
&& rm -rf /opt/helios-backend/src/.npm \
# && rm -rf /opt/helios-backend/src/.npm \
&& npm install -g "${NPM_VERSION}" \
&& rm -rf /usr/lib/node_modules

Expand Down

0 comments on commit a41ac25

Please sign in to comment.