-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (46 loc) · 2.73 KB
/
Copy pathDockerfile
File metadata and controls
51 lines (46 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# syntax=docker/dockerfile:1.7
FROM node:24.14.1-alpine
ARG NPM_VERSION=11.16.0
RUN npm install -g npm@${NPM_VERSION} \
&& apk add --no-cache curl python3 make g++
WORKDIR /workspace
COPY package.json package-lock.json .npmrc ./
COPY sdk/package.json ./sdk/package.json
COPY integration-tests/package.json ./integration-tests/package.json
COPY hardhat/package.json ./hardhat/package.json
COPY indexer/package.json ./indexer/package.json
COPY services/attester-core/package.json ./services/attester-core/package.json
COPY services/finder-core/package.json ./services/finder-core/package.json
COPY services/implication-attester/package.json ./services/implication-attester/package.json
COPY services/content-attester/package.json ./services/content-attester/package.json
COPY services/beat-memory/package.json ./services/beat-memory/package.json
COPY services/beat-agent/package.json ./services/beat-agent/package.json
COPY services/implication-finder/package.json ./services/implication-finder/package.json
COPY services/content-finder/package.json ./services/content-finder/package.json
COPY service-host/package.json ./service-host/package.json
COPY platform-api-service/package.json ./platform-api-service/package.json
COPY fake-data-generation/package.json ./fake-data-generation/package.json
COPY services/nudger-core/package.json ./services/nudger-core/package.json
COPY services/implication-graph-nudger/package.json ./services/implication-graph-nudger/package.json
COPY services/bridge-creator/package.json ./services/bridge-creator/package.json
COPY services/explorer-curator/package.json ./services/explorer-curator/package.json
COPY published-data-ipfs-mirror/package.json ./published-data-ipfs-mirror/package.json
COPY coherence-badge-worker/package.json ./coherence-badge-worker/package.json
COPY cause-assist/package.json ./cause-assist/package.json
COPY ui/package.json ./ui/package.json
COPY causestarter/package.json ./causestarter/package.json
COPY turbo.json ./turbo.json
RUN --mount=type=cache,target=/root/.npm HUSKY=0 npm ci --legacy-peer-deps
COPY sdk ./sdk
COPY docs ./docs
COPY ui ./ui
COPY scripts ./scripts
RUN chmod -R a+rX /workspace/sdk /workspace/docs /workspace/ui /workspace/scripts \
&& mkdir -p /workspace/sdk/.turbo /workspace/sdk/dist /workspace/sdk/src/generated \
/workspace/ui/.turbo /workspace/ui/dist /workspace/ui/node_modules/.tmp /workspace/ui/node_modules/.vite-temp \
/workspace/.turbo/cache /tmp/node-compile-cache \
&& chmod -R a+rwX /workspace/sdk/.turbo /workspace/sdk/dist /workspace/sdk/src/generated \
/workspace/ui/.turbo /workspace/ui/dist /workspace/ui/node_modules/.tmp /workspace/ui/node_modules/.vite-temp \
/workspace/.turbo /tmp/node-compile-cache
CMD ["node", "scripts/publish-ui-to-ipfs.mjs"]
EXPOSE 5173