mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 00:31:07 -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
16
Dockerfile
16
Dockerfile
|
@ -92,16 +92,12 @@ RUN apk add --no-cache \
|
||||||
########################################
|
########################################
|
||||||
COPY dependencies/* /
|
COPY dependencies/* /
|
||||||
|
|
||||||
#############################
|
###################################################################
|
||||||
# Install Dependencies #
|
# Install Dependencies #
|
||||||
#############################
|
# The chown fixes broken uid/gid in ast-types-flow dependency #
|
||||||
RUN npm install && bundle install
|
# (see https://github.com/github/super-linter/issues/3901) #
|
||||||
|
###################################################################
|
||||||
############################################################
|
RUN npm install && chown -R "$(id -u)":"$(id -g)" node_modules && 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
|
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# Installs Perl dependencies #
|
# Installs Perl dependencies #
|
||||||
|
|
Loading…
Reference in a new issue