generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add DockerFile and update README
- Loading branch information
Showing
2 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Build and export plugin artifacts. | ||
# Usage: `docker build --output ./dist .` | ||
|
||
FROM node:20-slim AS base | ||
RUN apt-get update && \ | ||
apt-get install -y git && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
WORKDIR /usr/src/app | ||
|
||
COPY package*.json ./ | ||
RUN npm install -g pnpm && pnpm install | ||
COPY . . | ||
|
||
FROM base AS builder | ||
WORKDIR /usr/src/app | ||
RUN pnpm run build | ||
|
||
FROM scratch AS export | ||
COPY --from=builder /usr/src/app/dist / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4810b9e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it Intentional pointing to ovh and not github.io ?
Links are broken