Some checks failed
Create issues from TODOs / todos (push) Failing after 3s
Close inactive issues / close-issues (push) Has been cancelled
Deploy GitHub Pages / deploy-preview (push) Has been cancelled
CI / ⚙️ Variables Setup (push) Has been cancelled
CI / ⚙️ Test Guard (push) Has been cancelled
CI / 🚀 Notify external services - draft (push) Has been cancelled
CI / 📦 Build Packages (push) Has been cancelled
CI / 📦 Meteor Build (coverage) (push) Has been cancelled
CI / 📦 Meteor Build (production) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], fips) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Publish Docker Images (ghcr.io) (push) Has been cancelled
CI / 📦 Track Image Sizes (push) Has been cancelled
CI / 🔎 Code Check - Action Lint (push) Has been cancelled
CI / 🔎 Code Check (push) Has been cancelled
CI / 🔨 Test Storybook (push) Has been cancelled
CI / 🔨 Test Unit (push) Has been cancelled
CI / 🔨 Test API (CE) (push) Has been cancelled
CI / 🔨 Test API Livechat (CE) (push) Has been cancelled
CI / 🔨 Test UI (CE) (push) Has been cancelled
CI / 🔨 Test API (EE) (push) Has been cancelled
CI / 🔨 Test API Livechat (EE) (push) Has been cancelled
CI / 🔨 Test API Apps (deno-runtime - EE) (push) Has been cancelled
CI / 🔨 Test UI (EE) (push) Has been cancelled
CI / 🔨 Test API (FIPS) (push) Has been cancelled
CI / 🔨 Test API Livechat (FIPS) (push) Has been cancelled
CI / 🔨 Test UI (FIPS) (push) Has been cancelled
CI / 🔨 Test Federation Matrix (push) Has been cancelled
CI / 📊 Report Coverage (push) Has been cancelled
CI / ✅ Tests Done (push) Has been cancelled
CI / 🚀 Publish build assets (push) Has been cancelled
CI / 🚀 Publish Docker Images (DockerHub) (push) Has been cancelled
CI / 🚀 Notify external services (push) Has been cancelled
CI / Update Version Durability (push) Has been cancelled
Release / Release (push) Has been cancelled
Auto-close duplicate issues / auto-close-duplicates (push) Failing after 1s
Code scanning - action / CodeQL-Build (push) Failing after 2s
88 lines
3.1 KiB
Docker
88 lines
3.1 KiB
Docker
FROM node:24.15.0-alpine3.23 as build
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y build-essential git
|
|
|
|
COPY ./package.json .
|
|
COPY ./yarn.lock .
|
|
COPY ./.yarnrc.yml .
|
|
COPY ./.yarn/plugins .yarn/plugins
|
|
COPY ./.yarn/releases .yarn/releases
|
|
COPY ./.yarn/patches .yarn/patches
|
|
|
|
COPY ./packages/core-services packages/core-services
|
|
COPY ./packages/core-typings packages/core-typings
|
|
COPY ./packages/eslint-config packages/eslint-config
|
|
COPY ./packages/tsconfig packages/tsconfig
|
|
COPY ./packages/rest-typings packages/rest-typings
|
|
COPY ./packages/media-signaling packages/media-signaling
|
|
COPY ./packages/model-typings packages/model-typings
|
|
COPY ./packages/models packages/models
|
|
|
|
COPY ./apps/meteor/ee/server/services apps/meteor/ee/server/services
|
|
|
|
RUN yarn install
|
|
|
|
RUN yarn workspace @rocket.chat/core-typings run build \
|
|
&& yarn workspace @rocket.chat/rest-typings run build
|
|
|
|
FROM node:24.15.0-alpine3.23
|
|
|
|
ARG SERVICE
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /app/packages/core-services/package.json /app/packages/core-services/package.json
|
|
COPY --from=build /app/packages/core-services/dist /app/packages/core-services/dist
|
|
|
|
COPY --from=build /app/packages/core-typings/package.json /app/packages/core-typings/package.json
|
|
COPY --from=build /app/packages/core-typings/dist /app/packages/core-typings/dist
|
|
|
|
COPY --from=build /app/packages/rest-typings/package.json /app/packages/rest-typings/package.json
|
|
COPY --from=build /app/packages/rest-typings/dist /app/packages/rest-typings/dist
|
|
|
|
COPY --from=build /app/packages/media-signaling/package.json /app/packages/media-signaling/package.json
|
|
COPY --from=build /app/packages/media-signaling/dist /app/packages/media-signaling/dist
|
|
|
|
COPY --from=build /app/packages/model-typings/package.json /app/packages/model-typings/package.json
|
|
COPY --from=build /app/packages/model-typings/dist /app/packages/model-typings/dist
|
|
|
|
COPY --from=build /app/packages/models/package.json /app/packages/models/package.json
|
|
COPY --from=build /app/packages/models/dist /app/packages/models/dist
|
|
|
|
COPY --from=build /app/packages/ui-kit/package.json /app/packages/ui-kit/package.json
|
|
COPY --from=build /app/packages/ui-kit/dist /app/packages/ui-kit/dist
|
|
|
|
# add dist/ folder from tsc so we don't need to add all rocket.chat repo
|
|
COPY ./apps/meteor/ee/server/services/dist ./apps/meteor/
|
|
|
|
COPY ./package.json .
|
|
COPY ./yarn.lock .
|
|
COPY ./.yarnrc.yml .
|
|
COPY ./.yarn/plugins .yarn/plugins
|
|
COPY ./.yarn/releases .yarn/releases
|
|
COPY ./.yarn/patches .yarn/patches
|
|
COPY ./apps/meteor/ee/server/services/package.json ./apps/meteor/ee/server/services/package.json
|
|
|
|
ENV NODE_ENV=production \
|
|
PORT=3000
|
|
|
|
WORKDIR /app/apps/meteor/ee/server/services
|
|
|
|
RUN apk update && \
|
|
apk --no-cache --virtual build-dependencies add g++ python3 make py3-setuptools && \
|
|
# Update OpenSSL
|
|
# CVE -> https://scout.docker.com/vulnerabilities/id/CVE-2025-9230?s=alpine&n=openssl&ns=alpine&t=apk&osn=alpine&osv=3.22
|
|
apk upgrade --no-cache openssl && \
|
|
yarn workspaces focus --production && \
|
|
rm -rf /var/cache/apk/* && \
|
|
apk del build-dependencies
|
|
|
|
WORKDIR /app/apps/meteor/ee/server/services/${SERVICE}
|
|
|
|
EXPOSE 3000 9458
|
|
|
|
CMD ["node", "service.js"]
|