Skip to content

Commit 35fe7e3

Browse files
committed
feat: change buildpack-16, runtime-16 debian version to buster
1 parent 23f9439 commit 35fe7e3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

buildpack-16/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:16.20.2-bookworm
1+
FROM node:16.20.2-buster
22

3-
ENV DEBIAN_VERSION_NAME bookworm
3+
ENV DEBIAN_VERSION_NAME buster
44

55
ARG USER_NAME=hackmd
66
ARG UID=1500
@@ -14,6 +14,7 @@ RUN set -xe && \
1414
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
1515
apt-get update && \
1616
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 && \
1718
rm -rf /var/lib/apt/lists/* && \
1819
# install node-prune
1920
npm i -g node-prune && npm cache clean --force && \

runtime-16/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:16.20.2-bookworm
1+
FROM node:16.20.2-buster
22

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

66
ARG USER_NAME=hackmd
@@ -20,6 +20,7 @@ RUN set -xe && \
2020
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
2121
apt-get update && \
2222
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 && \
2324
rm -rf /var/lib/apt/lists/* && \
2425
# install pchecker
2526
wget https://github.com/hackmdio/portchecker/releases/download/${PORTCHECKER_VERSION}/portchecker-linux-$(dpkg --print-architecture).tar.gz && \

0 commit comments

Comments
 (0)