fix(release): scope runtime workspace installs
This commit is contained in:
+7
-4
@@ -17,8 +17,11 @@ COPY packages/network/package.json ./packages/network/package.json
|
|||||||
FROM manifests AS dependencies
|
FROM manifests AS dependencies
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
FROM manifests AS production-dependencies
|
FROM manifests AS bot-dependencies
|
||||||
RUN npm ci --omit=dev
|
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
|
FROM dependencies AS builder
|
||||||
COPY . .
|
COPY . .
|
||||||
@@ -41,7 +44,7 @@ USER app
|
|||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["node", "apps/web/server.js"]
|
CMD ["node", "apps/web/server.js"]
|
||||||
|
|
||||||
FROM production-dependencies AS bot
|
FROM bot-dependencies AS bot
|
||||||
ARG VERSION=development
|
ARG VERSION=development
|
||||||
LABEL org.opencontainers.image.title="Minecraft Account Manager Discord Bot" \
|
LABEL org.opencontainers.image.title="Minecraft Account Manager Discord Bot" \
|
||||||
org.opencontainers.image.version="${VERSION}" \
|
org.opencontainers.image.version="${VERSION}" \
|
||||||
@@ -56,7 +59,7 @@ COPY --chown=app:app packages ./packages
|
|||||||
USER app
|
USER app
|
||||||
CMD ["npm", "run", "start", "--workspace", "@minecraft-account-manager/discord-bot"]
|
CMD ["npm", "run", "start", "--workspace", "@minecraft-account-manager/discord-bot"]
|
||||||
|
|
||||||
FROM production-dependencies AS migrate
|
FROM migration-dependencies AS migrate
|
||||||
ARG VERSION=development
|
ARG VERSION=development
|
||||||
LABEL org.opencontainers.image.title="Minecraft Account Manager Migrations" \
|
LABEL org.opencontainers.image.title="Minecraft Account Manager Migrations" \
|
||||||
org.opencontainers.image.version="${VERSION}" \
|
org.opencontainers.image.version="${VERSION}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user