Skip to content
Draft
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
2 changes: 2 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ jobs:
push: true
tags: ${{ steps.tags.outputs.tags }}
provenance: true
cache-from: type=gha
cache-to: type=gha,mode=max
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
FROM node:24@sha256:5a593d74b632d1c6f816457477b6819760e13624455d587eef0fa418c8d0777b AS builder

USER root
Expand All @@ -7,7 +8,8 @@ WORKDIR /out
COPY package*.json ./
COPY tsconfig.json tsconfig.publish.json proxy.config.json config.schema.json test-e2e.proxy.config.json vite.config.ts index.html index.ts ./

RUN npm pkg delete scripts.prepare && npm ci --include=dev
# Cache hit if no changes to /root/.npm, miss if dependencies change
RUN --mount=type=cache,target=/root/.npm npm pkg delete scripts.prepare && npm ci --include=dev

COPY src/ /out/src/
COPY public/ /out/public/
Expand All @@ -34,7 +36,6 @@ COPY --chown=1000:1000 --from=builder /out/build ./dist/build/
COPY --chown=1000:1000 proxy.config.json config.schema.json ./
COPY docker-entrypoint.sh /docker-entrypoint.sh


USER 1000

EXPOSE 8080 8000 8444
Expand Down
Loading