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:
Enrico Bühler 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

BIN
bun.lockb

Binary file not shown.

0
docker-compose.yml Normal file
View File

View File

@ -8,6 +8,7 @@
},
"devDependencies": {
"@types/bun": "^1.1.14",
"better-sqlite3": "^11.7.0",
"drizzle-kit": "^0.30.1"
},
"peerDependencies": {
@ -15,7 +16,6 @@
},
"dependencies": {
"@discordjs/rest": "^2.4.0",
"better-sqlite3": "^11.7.0",
"cron": "^3.3.1",
"discord.js": "^14.16.3",
"dotenv": "^16.4.7",