Skip to content

Commit

Permalink
Fix for issue ElementsProject#82
Browse files Browse the repository at this point in the history
This fixes ElementsProject#82

The key is: npm install sqlite3 --build-from-source

NOTE: Maybe updating to a newer node.js version might eliminate the need to build the sqlite3 module from source. I updated to the newest v12 only, to avoid any compatibility issues.
  • Loading branch information
ksdhans authored Feb 9, 2022
1 parent c54f065 commit d8ab453
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions arm64v8.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:12.16-slim as builder
FROM node:12.22.10-stretch-slim as builder

ARG STANDALONE

Expand All @@ -18,7 +18,7 @@ COPY . .
RUN npm run dist \
&& rm -rf src

FROM arm64v8/node:12.16-slim
FROM arm64v8/node:12.22.10-stretch-slim

WORKDIR /opt/charged
ARG TESTRUNNER
Expand All @@ -29,11 +29,12 @@ ENV STANDALONE=$STANDALONE

COPY --from=builder /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64-static

RUN apt-get update && apt-get install -y --no-install-recommends inotify-tools \
&& rm -rf /var/lib/apt/lists/* \
RUN apt-get update && apt-get install -y --no-install-recommends inotify-tools python build-essential \
&& rm -rf /var/lib/apt/lists/* \
&& ln -s /opt/charged/bin/charged /usr/bin/charged \
&& mkdir /data \
&& ln -s /data/lightning /tmp/.lightning
RUN npm install sqlite3 --build-from-source

COPY --from=builder /opt/local /usr/local
COPY --from=builder /opt/charged /opt/charged
Expand Down

0 comments on commit d8ab453

Please sign in to comment.