Skip to content

Commit 83984c3

Browse files
committed
feat: upgrade nodejs 14 to 14.21.3, and os to bullseye
1 parent 35fe7e3 commit 83984c3

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

buildpack-14/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
FROM node:14.21.2-buster
1+
FROM node:14.21.3-bullseye
22

3-
ENV DEBIAN_VERSION_NAME buster
3+
ENV DEBIAN_VERSION_NAME bullseye
44

55
ARG USER_NAME=hackmd
66
ARG UID=1500
77
ARG GID=1500
88

99
RUN set -xe && \
1010
apt-get update && \
11+
# Upgrade system
12+
apt-get upgrade -y && \
13+
apt-get dist-upgrade -y && \
1114
# install postgres client
1215
apt-get install -y --no-install-recommends apt-transport-https && \
1316
echo "deb http://apt.postgresql.org/pub/repos/apt/ ${DEBIAN_VERSION_NAME}-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
1417
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
1518
apt-get update && \
1619
apt-get install -y --no-install-recommends postgresql-client-11 && \
17-
if [ $(dpkg --print-architecture) = "arm64" ];then apt-get install -y --no-install-recommends phantomjs; fi && \
20+
# if [ $(dpkg --print-architecture) = "arm64" ];then apt-get install -y --no-install-recommends phantomjs; fi && \
1821
rm -rf /var/lib/apt/lists/* && \
1922
# upgrade npm to 7.24.2
2023
npm i -g [email protected] && npm cache clean --force && \

runtime-14/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:14.21.2-buster
1+
FROM node:14.21.3-bullseye
22

3-
ENV DEBIAN_VERSION_NAME=buster NODE_ENV=production
3+
ENV DEBIAN_VERSION_NAME=bullseye NODE_ENV=production
44
ENV PORTCHECKER_VERSION=v1.1.0
55

66
ARG USER_NAME=hackmd
@@ -14,13 +14,16 @@ ADD common/local.conf /etc/fonts/
1414

1515
RUN set -xe && \
1616
apt-get update && \
17+
# Upgrade system
18+
apt-get upgrade -y && \
19+
apt-get dist-upgrade -y && \
1720
# install postgres client
1821
apt-get install -y --no-install-recommends apt-transport-https && \
1922
echo "deb http://apt.postgresql.org/pub/repos/apt/ ${DEBIAN_VERSION_NAME}-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
2023
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
2124
apt-get update && \
2225
apt-get install -y --no-install-recommends postgresql-client-11 && \
23-
if [ $(dpkg --print-architecture) = "arm64" ];then apt-get install -y --no-install-recommends phantomjs; fi && \
26+
# if [ $(dpkg --print-architecture) = "arm64" ];then apt-get install -y --no-install-recommends phantomjs; fi && \
2427
rm -rf /var/lib/apt/lists/* && \
2528
# install pchecker
2629
wget https://github.com/hackmdio/portchecker/releases/download/${PORTCHECKER_VERSION}/portchecker-linux-$(dpkg --print-architecture).tar.gz && \

0 commit comments

Comments
 (0)