Files
ignis/Dockerfile

46 lines
933 B
Docker
Raw Normal View History

# Build shim-loader.js
2026-03-10 21:07:19 +01:00
FROM node:20-slim AS build
WORKDIR /build
COPY package.json package-lock.json ./
RUN npm ci --ignore-scripts
COPY build.js ./
COPY src/ ./src/
2026-03-10 21:07:19 +01:00
2026-03-19 15:37:47 +01:00
RUN npm run build
2026-03-10 21:07:19 +01:00
# Production image. No Obsidian code included.
# On first run, the entrypoint downloads and patches Obsidian.
2026-03-10 21:07:19 +01:00
FROM node:20-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl binutils xz-utils \
&& rm -rf /var/lib/apt/lists/*
2026-03-10 21:07:19 +01:00
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --omit=dev --ignore-scripts
COPY server/ ./server/
COPY scripts/ ./scripts/
COPY images/ ./images/
2026-03-18 02:38:36 +01:00
COPY plugin/ ./plugin/
COPY --from=build /build/dist ./dist
RUN chmod +x /app/scripts/entrypoint.sh
2026-03-10 21:07:19 +01:00
ENV PORT=8080
2026-03-11 23:17:53 +01:00
ENV VAULT_ROOT=/vaults
2026-03-12 22:46:53 +01:00
ENV OBSIDIAN_VERSION=1.12.4
2026-03-10 21:07:19 +01:00
ENV OBSIDIAN_ASSETS_PATH=/app/obsidian-app
EXPOSE 8080
2026-03-11 23:17:53 +01:00
VOLUME /vaults
VOLUME /app/obsidian-app
2026-03-10 21:07:19 +01:00
ENTRYPOINT ["/app/scripts/entrypoint.sh"]