-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (15 loc) · 761 Bytes
/
Copy pathDockerfile
File metadata and controls
20 lines (15 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:20-bookworm-slim
WORKDIR /app
COPY --chown=node:node package*.json ./
RUN npm ci --ignore-scripts
COPY --chown=node:node . .
RUN npm run build \
&& npm prune --omit=dev \
&& npm cache clean --force \
&& mkdir -p /app/profiles /app/market_adapter/data /app/market_adapter/state \
&& chown -R node:node /app/profiles /app/market_adapter/data /app/market_adapter/state
USER node
# Default command starts credential daemon and all active bots interactively.
# Run with: docker run -it -v ./profiles:/app/profiles -v ./market_adapter/data:/app/market_adapter/data -v ./market_adapter/state:/app/market_adapter/state <image>
# For a specific bot: docker run -it ... <image> node dist/unlock.js <bot-name>
CMD ["node", "dist/unlock.js"]