-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 706 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (18 loc) · 706 Bytes
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
FROM node:22-bookworm-slim
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 python3-pip python3-venv build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first so pip install layer is cached independently of source changes
COPY alpha_miner/requirements.txt ./alpha_miner/requirements.txt
RUN python3 -m pip install --break-system-packages -r alpha_miner/requirements.txt
# Copy source (invalidates only the layers below, not pip install)
COPY package.json ./
COPY alpha_miner ./alpha_miner
COPY service ./service
COPY docs ./docs
ENV PORT=3000
ENV ALPHA_MINER_ENGINE=python-v2
RUN mkdir -p /app/cloud-runs
EXPOSE 3000
CMD ["npm", "start"]