Skip to content

Commit

Permalink
Move chown into same RUN as npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkerr authored and lindluni committed Apr 10, 2023
1 parent 7726451 commit aa70600
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,12 @@ RUN apk add --no-cache \
########################################
COPY dependencies/* /

#############################
# Install Dependencies #
#############################
RUN npm install && bundle install

############################################################
# Fix broken permissions in ast-types-flow dependency #
# Fixes https://github.com/github/super-linter/issues/3901 #
############################################################
RUN chown -R "$(id -u)":"$(id -g)" node_modules
###################################################################
# Install Dependencies #
# The chown fixes broken uid/gid in ast-types-flow dependency #
# (see https://github.com/github/super-linter/issues/3901) #
###################################################################
RUN npm install && chown -R "$(id -u)":"$(id -g)" node_modules && bundle install

##############################
# Installs Perl dependencies #
Expand Down

0 comments on commit aa70600

Please sign in to comment.