mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-21 21:50:59 -05:00
Move chown into same RUN as npm install
This commit is contained in:
parent
772645136b
commit
aa7060080c
1 changed files with 6 additions and 10 deletions
14
Dockerfile
14
Dockerfile
|
@ -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
|
||||
# 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 #
|
||||
|
|
Loading…
Reference in a new issue