diff --git a/.dockerignore b/.dockerignore index cabc73c..98d653f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,5 @@ # Only what the Dockerfile COPYs matters: package.json/bun.lock/bunfig.toml, -# src/, scripts/, server-py/. Everything else is noise for the build context. +# patches/, src/, scripts/, server-py/. Everything else is noise for the build context. .git node_modules dist diff --git a/Dockerfile b/Dockerfile index 8799e23..db2f53a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,7 @@ FROM oven/bun:1 AS build WORKDIR /app COPY package.json bun.lock bunfig.toml ./ +COPY patches ./patches RUN bun install --frozen-lockfile COPY src ./src @@ -35,6 +36,7 @@ ENV DB_PATH=/app/data/app.db ENV AUTH_ENABLED=true COPY package.json bun.lock bunfig.toml ./ +COPY patches ./patches RUN bun install --frozen-lockfile --production COPY src ./src