File tree 3 files changed +23
-8
lines changed
3 files changed +23
-8
lines changed Original file line number Diff line number Diff line change
1
+ ** /** /node_modules
1
2
.dockerignore
2
3
Dockerfile
Original file line number Diff line number Diff line change 1
- FROM node:8.15-alpine
1
+ FROM amazonlinux:2
2
2
3
3
WORKDIR /app
4
4
5
- RUN apk add --update \
6
- bash \
5
+ ENV NODE_VERSION 8.16.0
6
+
7
+ RUN yum -y --security update \
8
+ && yum install -y \
7
9
git \
8
10
rsync \
9
11
zip \
12
+ unzip \
13
+ tar \
14
+ xz \
10
15
python3 \
11
16
python3-dev \
12
17
py3-setuptools \
13
- && rm -rf /var/cache/apk/*
18
+ && yum clean all \
19
+ && rm -rf /var/cache/yum \
20
+ && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" \
21
+ && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt" \
22
+ && grep " node-v$NODE_VERSION-linux-x64.tar.xz\$ " SHASUMS256.txt | sha256sum -c - \
23
+ && tar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
24
+ && ln -s /usr/local/bin/node /usr/local/bin/nodejs \
25
+ && rm "node-v$NODE_VERSION-linux-x64.tar.xz" SHASUMS256.txt
14
26
15
27
COPY . .
16
28
Original file line number Diff line number Diff line change @@ -25,8 +25,10 @@ for module in ${modules}; do
25
25
# Symlink executable scripts into place as well. This is not completely
26
26
# according to spec (we look in the bin/ directory instead of the { "scripts"
27
27
# } entry in package.json but it's quite a bit easier.
28
- [[ -d $module /bin ]] && for script in $( find $module /bin -perm +111) ; do
29
- echo " ${script} => node_modules/.bin/$( basename $script ) "
30
- ln -fs ${script} node_modules/.bin
31
- done
28
+ if [[ -d $module /bin ]]; then
29
+ for script in $( find $module /bin -perm /111) ; do
30
+ echo " ${script} => node_modules/.bin/$( basename $script ) "
31
+ ln -fs ${script} node_modules/.bin
32
+ done
33
+ fi
32
34
done
You can’t perform that action at this time.
0 commit comments