File tree Expand file tree Collapse file tree 9 files changed +29
-16
lines changed Expand file tree Collapse file tree 9 files changed +29
-16
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ RUN set -xe && \
14
14
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
15
15
apt-get update && \
16
16
apt-get install -y --no-install-recommends postgresql-client-12 && \
17
+ if [ $(dpkg --print-architecture) = "arm64" ];then apt-get install -y --no-install-recommends phantomjs; fi && \
17
18
rm -rf /var/lib/apt/lists/* && \
18
19
# install node-prune
19
20
npm install -g node-prune && npm cache clean --force && \
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ RUN set -xe && \
14
14
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
15
15
apt-get update && \
16
16
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 && \
17
18
rm -rf /var/lib/apt/lists/* && \
18
19
# upgrade npm to 6.10
19
20
npm i -g
[email protected] && npm cache clean --force && \
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ RUN set -xe && \
14
14
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
15
15
apt-get update && \
16
16
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 && \
17
18
rm -rf /var/lib/apt/lists/* && \
18
19
# upgrade npm to 6.10
19
20
Original file line number Diff line number Diff line change 1
1
FROM node:8.16.2-jessie
2
+ # WARNING this version can't support arm64
2
3
3
4
ENV DEBIAN_VERSION_NAME jessie
4
5
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM node:10.20.1-buster-slim
2
2
3
3
ENV DEBIAN_VERSION_NAME=buster NODE_ENV=production
4
4
ENV OPENSSL_CONF=/etc/ssl/
5
+ ENV PORTCHECKER_VERSION=v1.1.0
5
6
6
7
ARG USER_NAME=hackmd
7
8
ARG UID=1500
@@ -15,12 +16,13 @@ RUN set -xe && \
15
16
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
16
17
apt-get update && \
17
18
apt-get install -y --no-install-recommends postgresql-client-12 && \
19
+ if [ $(dpkg --print-architecture) = "arm64" ];then apt-get install -y --no-install-recommends phantomjs; fi && \
18
20
rm -rf /var/lib/apt/lists/* && \
19
21
# install pchecker
20
- wget https://github.com/hackmdio/portchecker/releases/download/v1.0.5 /portchecker-linux-amd64 .tar.gz && \
21
- tar xvf portchecker-linux-amd64 .tar.gz -C /usr/local/bin && \
22
- mv /usr/local/bin/portchecker-linux-amd64 /usr/local/bin/pcheck && \
23
- rm portchecker-linux-amd64 .tar.gz && \
22
+ wget https://github.com/hackmdio/portchecker/releases/download/${PORTCHECKER_VERSION} /portchecker-linux-$(dpkg --print-architecture) .tar.gz && \
23
+ tar xvf portchecker-linux-$(dpkg --print-architecture) .tar.gz -C /usr/local/bin && \
24
+ mv /usr/local/bin/portchecker-linux-$(dpkg --print-architecture) /usr/local/bin/pcheck && \
25
+ rm portchecker-linux-$(dpkg --print-architecture) .tar.gz && \
24
26
# Add user and groupd
25
27
groupadd --gid $GID $USER_NAME && \
26
28
useradd --uid $UID --gid $USER_NAME --no-log-init --create-home $USER_NAME && \
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM node:10.20.1-buster-slim
2
2
3
3
ENV DEBIAN_VERSION_NAME=buster NODE_ENV=production
4
4
ENV OPENSSL_CONF=/etc/ssl/
5
+ ENV PORTCHECKER_VERSION=v1.1.0
5
6
6
7
ARG USER_NAME=hackmd
7
8
ARG UID=1500
@@ -20,12 +21,13 @@ RUN set -xe && \
20
21
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
21
22
apt-get update && \
22
23
apt-get install -y --no-install-recommends postgresql-client-12 && \
24
+ if [ $(dpkg --print-architecture) = "arm64" ];then apt-get install -y --no-install-recommends phantomjs; fi && \
23
25
rm -rf /var/lib/apt/lists/* && \
24
26
# install pchecker
25
- wget https://github.com/hackmdio/portchecker/releases/download/v1.0.5 /portchecker-linux-amd64 .tar.gz && \
26
- tar xvf portchecker-linux-amd64 .tar.gz -C /usr/local/bin && \
27
- mv /usr/local/bin/portchecker-linux-amd64 /usr/local/bin/pcheck && \
28
- rm portchecker-linux-amd64 .tar.gz && \
27
+ wget https://github.com/hackmdio/portchecker/releases/download/${PORTCHECKER_VERSION} /portchecker-linux-$(dpkg --print-architecture) .tar.gz && \
28
+ tar xvf portchecker-linux-$(dpkg --print-architecture) .tar.gz -C /usr/local/bin && \
29
+ mv /usr/local/bin/portchecker-linux-$(dpkg --print-architecture) /usr/local/bin/pcheck && \
30
+ rm portchecker-linux-$(dpkg --print-architecture) .tar.gz && \
29
31
# Add user and groupd
30
32
groupadd --gid $GID $USER_NAME && \
31
33
useradd --uid $UID --gid $USER_NAME --no-log-init --create-home $USER_NAME && \
Original file line number Diff line number Diff line change 1
1
FROM node:14.17.2-buster
2
2
3
3
ENV DEBIAN_VERSION_NAME=buster NODE_ENV=production
4
+ ENV PORTCHECKER_VERSION=v1.1.0
4
5
5
6
ARG USER_NAME=hackmd
6
7
ARG UID=1500
@@ -19,12 +20,13 @@ RUN set -xe && \
19
20
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
20
21
apt-get update && \
21
22
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 && \
22
24
rm -rf /var/lib/apt/lists/* && \
23
25
# install pchecker
24
- wget https://github.com/hackmdio/portchecker/releases/download/v1.1.0 /portchecker-linux-amd64 .tar.gz && \
25
- tar xvf portchecker-linux-amd64 .tar.gz -C /usr/local/bin && \
26
- mv /usr/local/bin/portchecker-linux-amd64 /usr/local/bin/pcheck && \
27
- rm portchecker-linux-amd64 .tar.gz && \
26
+ wget https://github.com/hackmdio/portchecker/releases/download/${PORTCHECKER_VERSION} /portchecker-linux-$(dpkg --print-architecture) .tar.gz && \
27
+ tar xvf portchecker-linux-$(dpkg --print-architecture) .tar.gz -C /usr/local/bin && \
28
+ mv /usr/local/bin/portchecker-linux-$(dpkg --print-architecture) /usr/local/bin/pcheck && \
29
+ rm portchecker-linux-$(dpkg --print-architecture) .tar.gz && \
28
30
# Add user and groupd
29
31
groupadd --gid $GID $USER_NAME && \
30
32
useradd --uid $UID --gid $USER_NAME --no-log-init --create-home $USER_NAME && \
Original file line number Diff line number Diff line change 1
1
FROM node:15.12.0-buster
2
2
3
3
ENV DEBIAN_VERSION_NAME=jessie NODE_ENV=production
4
+ ENV PORTCHECKER_VERSION=v1.1.0
4
5
5
6
ARG USER_NAME=hackmd
6
7
ARG UID=1500
@@ -19,12 +20,13 @@ RUN set -xe && \
19
20
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
20
21
apt-get update && \
21
22
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 && \
22
24
rm -rf /var/lib/apt/lists/* && \
23
25
# install pchecker
24
- wget https://github.com/hackmdio/portchecker/releases/download/v1.0.5 /portchecker-linux-amd64 .tar.gz && \
25
- tar xvf portchecker-linux-amd64 .tar.gz -C /usr/local/bin && \
26
- mv /usr/local/bin/portchecker-linux-amd64 /usr/local/bin/pcheck && \
27
- rm portchecker-linux-amd64 .tar.gz && \
26
+ wget https://github.com/hackmdio/portchecker/releases/download/${PORTCHECKER_VERSION} /portchecker-linux-$(dpkg --print-architecture) .tar.gz && \
27
+ tar xvf portchecker-linux-$(dpkg --print-architecture) .tar.gz -C /usr/local/bin && \
28
+ mv /usr/local/bin/portchecker-linux-$(dpkg --print-architecture) /usr/local/bin/pcheck && \
29
+ rm portchecker-linux-$(dpkg --print-architecture) .tar.gz && \
28
30
# Add user and groupd
29
31
groupadd --gid $GID $USER_NAME && \
30
32
useradd --uid $UID --gid $USER_NAME --no-log-init --create-home $USER_NAME && \
Original file line number Diff line number Diff line change 1
1
FROM node:8.16.2-jessie
2
+ # WARNING this version can't support arm64
2
3
3
4
ENV DEBIAN_VERSION_NAME=jessie NODE_ENV=production
4
5
You can’t perform that action at this time.
0 commit comments