-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
38 lines (29 loc) · 1.02 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
FROM node:20-slim
LABEL org.opencontainers.image.title="chmcp" \
org.opencontainers.image.description="Channel-MCP unified image (server + worker)" \
org.opencontainers.image.source="https://github.com/plagness/Channel-MCP.git" \
ns.module="channel" \
ns.component="mcp"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python3 python3-pip python3-venv dumb-init git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Node deps
COPY server/package.json server/package-lock.json* server/
RUN cd server && npm install
# Python deps (PEP 668: allow system install inside container)
COPY worker/requirements.txt worker/
RUN pip3 install --no-cache-dir --break-system-packages -r worker/requirements.txt
# App sources
COPY server server
COPY worker worker
COPY db db
COPY bin bin
RUN chmod +x /app/bin/entrypoint.sh \
&& cd server && npm run build
ENV NODE_ENV=production \
PYTHONUNBUFFERED=1 \
PYTHONPATH=/app
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/app/bin/entrypoint.sh"]