File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 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
55ARG USER_NAME=hackmd
66ARG 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 && \
Original file line number Diff line number Diff line change 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
44ENV PORTCHECKER_VERSION=v1.1.0
55
66ARG 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 && \
You can’t perform that action at this time.
0 commit comments