Skip to content

Commit 89f3f22

Browse files
committed
build using centos 7, but armv7 not working
1 parent 3660579 commit 89f3f22

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

build.dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# DON'T UPDATE TO node:14-bullseye-slim, see #372.
2-
FROM node:14-stretch-slim AS build
2+
FROM centos:7 AS build
33
WORKDIR /app
44

55
COPY . .
66

77
# split the sqlite install here, so that it can caches the arm prebuilt
88
# do not modify it, since we don't want to re-compile the arm prebuilt again
9-
RUN apt update && \
10-
apt --yes install python3 python3-pip python3-dev git g++ make && \
11-
ln -s /usr/bin/python3 /usr/bin/python
9+
RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash
10+
RUN yum install -y python git gcc-c++ make nodejs
11+
1212

1313
RUN npm install @mapbox/node-pre-gyp -g
1414
RUN npm install --ignore-scripts
1515
RUN npx node-pre-gyp install --build-from-source
1616
RUN npm run test
1717
RUN npx node-pre-gyp package
1818

19-
FROM node:14-stretch-slim AS release
19+
FROM centos:7 AS release
2020
WORKDIR /app/build
2121
# Copy app files from build layer
2222
COPY --from=build /app/build /app/build

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"pretest": "node test/support/createdb.js",
6666
"test": "mocha -R spec --timeout 480000",
6767
"pack": "node-pre-gyp package",
68-
"build-linux": "docker buildx build -f build.dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 --output type=tar,dest=D:/DockerCache/out.tar .",
68+
"build-linux": "docker buildx build -f build.dockerfile --platform linux/amd64,linux/arm64 --output type=tar,dest=D:/DockerCache/out.tar . --progress plain",
6969
"build-linux-alpine": "docker buildx build -f build-alpine.dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 --output type=tar,dest=D:/DockerCache/out-alpine.tar ."
7070
},
7171
"license": "BSD-3-Clause",

0 commit comments

Comments
 (0)