mirror of
https://github.com/zadam/trilium.git
synced 2026-08-06 08:01:05 +02:00
chore(docker): set up tooling for building better-sqlite3 from scratch
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
FROM node:24.14.1-bullseye-slim AS builder
|
||||
RUN corepack enable
|
||||
|
||||
# Install build tools required to compile native addons (e.g. better-sqlite3) on ARM
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
python3 \
|
||||
make \
|
||||
g++ && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install native dependencies since we might be building cross-platform.
|
||||
WORKDIR /usr/src/app/build
|
||||
COPY ./docker/package.json ./docker/pnpm-workspace.yaml /usr/src/app/
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
FROM node:24.14.1-alpine AS builder
|
||||
RUN corepack enable
|
||||
|
||||
# Install build tools required to compile native addons (e.g. better-sqlite3) on ARM
|
||||
RUN apk add --no-cache python3 make g++
|
||||
|
||||
# Install native dependencies since we might be building cross-platform.
|
||||
WORKDIR /usr/src/app
|
||||
COPY ./docker/package.json ./docker/pnpm-workspace.yaml /usr/src/app/
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
FROM node:24.14.1-alpine AS builder
|
||||
RUN corepack enable
|
||||
|
||||
# Install build tools required to compile native addons (e.g. better-sqlite3) on ARM
|
||||
RUN apk add --no-cache python3 make g++
|
||||
|
||||
# Install native dependencies since we might be building cross-platform.
|
||||
WORKDIR /usr/src/app
|
||||
COPY ./docker/package.json ./docker/pnpm-workspace.yaml /usr/src/app/
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
FROM node:22.21.0-bullseye-slim AS builder
|
||||
RUN corepack enable
|
||||
|
||||
# Install build tools required to compile native addons (e.g. better-sqlite3) on ARM
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
python3 \
|
||||
make \
|
||||
g++ && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install native dependencies since we might be building cross-platform.
|
||||
WORKDIR /usr/src/app/build
|
||||
COPY ./docker/package.json ./docker/pnpm-workspace.yaml /usr/src/app/
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
FROM node:24.14.1-bullseye-slim AS builder
|
||||
RUN corepack enable
|
||||
|
||||
# Install build tools required to compile native addons (e.g. better-sqlite3) on ARM
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
python3 \
|
||||
make \
|
||||
g++ && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install native dependencies since we might be building cross-platform.
|
||||
WORKDIR /usr/src/app/build
|
||||
COPY ./docker/package.json ./docker/pnpm-workspace.yaml /usr/src/app/
|
||||
|
||||
Reference in New Issue
Block a user