Files
ignis/Dockerfile

45 lines
919 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 shims/ ./shims/
RUN npm run build:shims
# 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/
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
ENV OBSIDIAN_VERSION=1.8.9
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"]