File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 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
55ARG USER_NAME=hackmd
66ARG UID=1500
77ARG GID=1500
88
99RUN 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 && \
Original file line number Diff line number Diff line change 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
44ENV PORTCHECKER_VERSION=v1.1.0
55
66ARG USER_NAME=hackmd
@@ -14,13 +14,16 @@ ADD common/local.conf /etc/fonts/
1414
1515RUN 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 && \
You can’t perform that action at this time.
0 commit comments