File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,19 @@ ENV NPM_PACKAGES "node-sass \
30
30
sass-rem \
31
31
sass-toolkit \
32
32
script-loader \
33
- susy \
34
33
typey \
35
34
yargs \
36
35
node-sass-asset-functions"
37
36
38
- RUN apk add --no-cache make g++ git python && \
39
- apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community libsass && \
40
- npm --unsafe-perm install -g webpack@1 LPGhatguy/node-sass-glob $NPM_PACKAGES && \
41
- apk del --purge make g++ python git
37
+ RUN apk add --no-cache git \
38
+ && npm --unsafe-perm install -g \
39
+ LPGhatguy/node-sass-glob \
40
+ webpack@3 susy@2 \
41
+ $NPM_PACKAGES \
42
+ && apk del --no-cache --purge git \
43
+ && mkdir /.cache /.config \
44
+ && chmod 777 /.cache /.config \
45
+ && rm -rf /root/.npm /root/.config /tmp/npm*
42
46
43
47
COPY docker-entrypoint.sh /usr/local/bin/
44
48
ENTRYPOINT ["docker-entrypoint.sh" ]
Original file line number Diff line number Diff line change 3
3
# prevent conflicts with existing
4
4
rm -rf node_modules
5
5
6
- /usr/bin/npm link node-sass-glob webpack $NPM_PACKAGES
6
+ /usr/bin/npm link --unsafe-perm node-sass-glob webpack susy $NPM_PACKAGES
7
7
8
8
exec " $@ "
You can’t perform that action at this time.
0 commit comments