Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.3.1 - 2026-11-22

- The image no longer contains npm, npx, corepack or yarn from the Node base image. Nothing used them at runtime, and
npm's bundled dependencies were the image's only Trivy findings.

## 0.3.0 - 2026-11-20

- `MAILVIEW_USERS` entries can be email addresses (`alice@example.com=alice`), matched case-insensitively and only
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ ENV NODE_ENV=production
ENV PORT=8080
WORKDIR /app
COPY package.json package-lock.json .npmrc ./
RUN npm ci --omit=dev && npm cache clean --force
# npm, npx, corepack and yarn come with the base image but never run here: remove them so the image carries less
# code to patch (Trivy flags npm's bundled dependencies).
RUN npm ci --omit=dev && npm cache clean --force && rm -rf /usr/local/lib/node_modules/npm /usr/local/lib/node_modules/corepack /opt/yarn-v* /usr/local/bin/npm /usr/local/bin/npx /usr/local/bin/corepack /usr/local/bin/yarn /usr/local/bin/yarnpkg
COPY server ./server
COPY --from=build /app/dist ./dist
USER node
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mailview",
"private": true,
"version": "0.3.0",
"version": "0.3.1",
"description": "A read-only web UI for Mail-Archiver: search, read and download archived email, one account per person.",
"license": "MIT",
"repository": {
Expand Down