28 lines
575 B
Plaintext
28 lines
575 B
Plaintext
FROM python:3.14-alpine
|
|
|
|
# Install TA-Lib C library and build dependencies
|
|
RUN apk add --no-cache --virtual .build-deps \
|
|
gcc \
|
|
g++ \
|
|
make \
|
|
musl-dev \
|
|
wget \
|
|
&& apk add --no-cache \
|
|
ta-lib \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy requirements first for better caching
|
|
COPY backend/requirements.txt /app/requirements.txt
|
|
|
|
# Install Python dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Clean up build dependencies
|
|
RUN apk del .build-deps
|
|
|
|
# Copy application code
|
|
COPY backend/src /app/src
|