Skip to content

Commit a447392

Browse files
committed
Webpack 3 for d7 (susy@2)
1 parent 72d33fd commit a447392

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

d7/Dockerfile

+9-5
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,19 @@ ENV NPM_PACKAGES "node-sass \
3030
sass-rem \
3131
sass-toolkit \
3232
script-loader \
33-
susy \
3433
typey \
3534
yargs \
3635
node-sass-asset-functions"
3736

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*
4246

4347
COPY docker-entrypoint.sh /usr/local/bin/
4448
ENTRYPOINT ["docker-entrypoint.sh"]

d7/docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
# prevent conflicts with existing
44
rm -rf node_modules
55

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
77

88
exec "$@"

0 commit comments

Comments
 (0)