diff --git a/Dockerfile b/Dockerfile index 4e787b3..da143ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/bun.lockb b/bun.lockb index f93e771..42c72f1 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index 53d6aeb..517ab41 100644 --- a/package.json +++ b/package.json @@ -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",