mirror of
https://github.com/RocketChat/Rocket.Chat.git
synced 2025-12-28 06:47:25 +00:00
Some checks are pending
Deploy GitHub Pages / deploy-preview (push) Waiting to run
CI / ⚙️ Variables Setup (push) Waiting to run
CI / 🚀 Notify external services - draft (push) Blocked by required conditions
CI / 📦 Build Packages (push) Blocked by required conditions
CI / deploy-preview (push) Blocked by required conditions
CI / 📦 Meteor Build - coverage (push) Blocked by required conditions
CI / 📦 Meteor Build - official (push) Blocked by required conditions
CI / Builds matrix rust bindings against alpine (push) Waiting to run
CI / 🚢 Build Docker Images for Testing (debian) (push) Blocked by required conditions
CI / 🚢 Build Docker Images for Testing (official) (push) Blocked by required conditions
CI / 🚢 Build Docker Images for Production (debian) (push) Blocked by required conditions
CI / 🚢 Build Docker Images for Production (official) (push) Blocked by required conditions
CI / 🔎 Code Check (push) Blocked by required conditions
CI / 🔨 Test Unit (push) Blocked by required conditions
CI / 🔨 Test API (CE) (push) Blocked by required conditions
CI / 🔨 Test UI (CE) (push) Blocked by required conditions
CI / 🔨 Test API (EE) (push) Blocked by required conditions
CI / 🔨 Test UI (EE) (push) Blocked by required conditions
CI / ✅ Tests Done (push) Blocked by required conditions
CI / 🚀 Publish build assets (push) Blocked by required conditions
CI / 🚢 Build Docker Image (preview) (push) Blocked by required conditions
CI / 🚀 Publish Docker Image (main) (debian) (push) Blocked by required conditions
CI / 🚀 Publish Docker Image (main) (official) (push) Blocked by required conditions
CI / 🚀 Publish Docker Image (main) (preview) (push) Blocked by required conditions
CI / 🚀 Publish Docker Image (services) (account) (push) Blocked by required conditions
CI / 🚀 Publish Docker Image (services) (authorization) (push) Blocked by required conditions
CI / 🚀 Publish Docker Image (services) (ddp-streamer) (push) Blocked by required conditions
CI / 🚀 Publish Docker Image (services) (omnichannel-transcript) (push) Blocked by required conditions
CI / 🚀 Publish Docker Image (services) (presence) (push) Blocked by required conditions
CI / 🚀 Publish Docker Image (services) (queue-worker) (push) Blocked by required conditions
CI / 🚀 Publish Docker Image (services) (stream-hub) (push) Blocked by required conditions
CI / 🚀 Notify external services (push) Blocked by required conditions
CI / trigger-dependent-workflows (push) Blocked by required conditions
CI / Update Version Durability (push) Blocked by required conditions
Code scanning - action / CodeQL-Build (push) Waiting to run
Co-authored-by: Diego Sampaio <chinello@gmail.com> Co-authored-by: Ricardo Garim <rswarovsky@gmail.com> Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
80 lines
2.8 KiB
Docker
80 lines
2.8 KiB
Docker
FROM node:20.17.0-alpine3.20
|
|
|
|
ARG SERVICE
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./packages/core-services/package.json packages/core-services/package.json
|
|
COPY ./packages/core-services/dist packages/core-services/dist
|
|
|
|
COPY ./packages/apps-engine/package.json packages/apps-engine/package.json
|
|
COPY ./packages/apps-engine/client packages/apps-engine/client
|
|
COPY ./packages/apps-engine/definition packages/apps-engine/definition
|
|
|
|
COPY ./packages/agenda/package.json packages/agenda/package.json
|
|
COPY ./packages/agenda/dist packages/agenda/dist
|
|
|
|
COPY ./packages/core-typings/package.json packages/core-typings/package.json
|
|
COPY ./packages/core-typings/dist packages/core-typings/dist
|
|
|
|
COPY ./packages/rest-typings/package.json packages/rest-typings/package.json
|
|
COPY ./packages/rest-typings/dist packages/rest-typings/dist
|
|
|
|
COPY ./packages/message-parser/package.json packages/message-parser/package.json
|
|
COPY ./packages/message-parser/dist packages/message-parser/dist
|
|
COPY ./packages/message-parser/messageParser.js packages/message-parser/messageParser.js
|
|
|
|
COPY ./packages/peggy-loader/package.json packages/peggy-loader/package.json
|
|
COPY ./packages/peggy-loader/dist packages/peggy-loader/dist
|
|
|
|
COPY ./packages/model-typings/package.json packages/model-typings/package.json
|
|
COPY ./packages/model-typings/dist packages/model-typings/dist
|
|
|
|
COPY ./packages/jwt/package.json packages/jwt/package.json
|
|
COPY ./packages/jwt/dist packages/jwt/dist
|
|
|
|
COPY ./packages/models/package.json packages/models/package.json
|
|
COPY ./packages/models/dist packages/models/dist
|
|
|
|
COPY ./packages/logger/package.json packages/logger/package.json
|
|
COPY ./packages/logger/dist packages/logger/dist
|
|
|
|
COPY ./packages/server-cloud-communication/ packages/server-cloud-communication/
|
|
|
|
COPY ./ee/packages/network-broker/package.json ee/packages/network-broker/package.json
|
|
COPY ./ee/packages/network-broker/dist ee/packages/network-broker/dist
|
|
|
|
COPY ./ee/packages/license/package.json packages/license/package.json
|
|
COPY ./ee/packages/license/dist packages/license/dist
|
|
|
|
COPY ./packages/tracing/package.json packages/tracing/package.json
|
|
COPY ./packages/tracing/dist packages/tracing/dist
|
|
|
|
COPY ./packages/ui-kit/package.json packages/ui-kit/package.json
|
|
COPY ./packages/ui-kit/dist packages/ui-kit/dist
|
|
|
|
COPY ./ee/apps/${SERVICE}/dist .
|
|
|
|
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 ./ee/apps/${SERVICE}/package.json ee/apps/${SERVICE}/package.json
|
|
|
|
ENV NODE_ENV=production \
|
|
PORT=3000
|
|
|
|
WORKDIR /app/ee/apps/${SERVICE}
|
|
|
|
RUN apk update && \
|
|
apk --no-cache --virtual build-dependencies add g++ python3 make py3-setuptools && \
|
|
yarn workspaces focus --production && \
|
|
rm -rf /var/cache/apk/* && \
|
|
apk del build-dependencies
|
|
|
|
EXPOSE 3000 9458
|
|
|
|
CMD ["node", "src/service.js"]
|