Skip to content

Commit b3fa789

Browse files
committed
feat: lock npm version to 6.10.3
1 parent 700e6bc commit b3fa789

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

buildpack/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ RUN set -x && \
1111
apt-get update && \
1212
apt-get install -y --no-install-recommends postgresql-client-9.6 && \
1313
rm -rf /var/lib/apt/lists/* && \
14+
# upgrade npm to 6.10
15+
npm i -g [email protected] && \
1416
# install node-prune
1517
npm i -g node-prune && npm cache clean --force && \
1618
# setup github ssh key
1719
mkdir -p /root/.ssh && \
18-
ssh-keyscan -H github.com >> ~/.ssh/known_hosts && \
20+
ssh-keyscan -H github.com >> /root/.ssh/known_hosts && \
1921
# setup git credential helper
2022
mkdir -p /root/git && \
2123
git config --global credential.helper 'store --file /root/git/credentials'

runtime/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RUN fc-cache -f -v && \
4040
dpkg-reconfigure fontconfig
4141

4242
USER hackmd
43-
RUN npm install -g sequelize-cli
43+
RUN npm install -g sequelize-cli [email protected]
4444

4545
WORKDIR /home/$USER_NAME/app
4646

0 commit comments

Comments
 (0)