remove better-sqlite from main deps
All checks were successful
release-tag / release-image (push) Successful in 1m21s

rebuild lock
remove dev deps from dockerfile
This commit is contained in:
2025-01-12 21:15:29 +01:00
parent 0e0317ad6b
commit 907c730172
4 changed files with 2 additions and 7 deletions

View File

@@ -6,11 +6,6 @@ WORKDIR /usr/src/app
# install dependencies into temp directory
# this will cache them and speed up future builds
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lockb /temp/dev/
RUN apt update && apt install python3 python3-pip make g++ -y
RUN cd /temp/dev && bun install --frozen-lockfile
# install with --production (exclude devDependencies)
RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/
@@ -19,7 +14,7 @@ RUN cd /temp/prod && bun install --frozen-lockfile --production
# copy node_modules from temp directory
# then copy all (non-ignored) project files into the image
FROM base AS prerelease
COPY --from=install /temp/dev/node_modules node_modules
COPY --from=install /temp/prod/node_modules node_modules
COPY . .
# [optional] tests & build