From 9f0832a5b5ba2435e4175257b8809ea7176a8de1 Mon Sep 17 00:00:00 2001 From: Dylan Garvis Date: Sun, 2 Aug 2026 11:39:18 -0400 Subject: [PATCH] fix(release): scope runtime workspace installs --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 012b68e..12e7112 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,8 +17,11 @@ COPY packages/network/package.json ./packages/network/package.json FROM manifests AS dependencies RUN npm ci -FROM manifests AS production-dependencies -RUN npm ci --omit=dev +FROM manifests AS bot-dependencies +RUN npm ci --omit=dev --workspace @minecraft-account-manager/discord-bot + +FROM manifests AS migration-dependencies +RUN npm ci --omit=dev --workspace @minecraft-account-manager/database FROM dependencies AS builder COPY . . @@ -41,7 +44,7 @@ USER app EXPOSE 3000 CMD ["node", "apps/web/server.js"] -FROM production-dependencies AS bot +FROM bot-dependencies AS bot ARG VERSION=development LABEL org.opencontainers.image.title="Minecraft Account Manager Discord Bot" \ org.opencontainers.image.version="${VERSION}" \ @@ -56,7 +59,7 @@ COPY --chown=app:app packages ./packages USER app CMD ["npm", "run", "start", "--workspace", "@minecraft-account-manager/discord-bot"] -FROM production-dependencies AS migrate +FROM migration-dependencies AS migrate ARG VERSION=development LABEL org.opencontainers.image.title="Minecraft Account Manager Migrations" \ org.opencontainers.image.version="${VERSION}" \