22 lines
707 B
Docker
22 lines
707 B
Docker
FROM node:18-slim
|
||
|
||
USER root
|
||
|
||
# Sistem bağımlılıklarını yükle (Prophet ve diğer ML kütüphaneleri için)
|
||
RUN apt-get update && apt-get install -y \
|
||
python3 python3-pip python3-dev \
|
||
build-essential curl unzip cmake bash make \
|
||
libffi-dev libatlas-base-dev git && \
|
||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||
|
||
# n8n'i global olarak yükle
|
||
RUN npm install -g n8n
|
||
|
||
# Python paketlerini yükle (PEP 668 bypass edilerek)
|
||
RUN pip3 install --break-system-packages --no-cache-dir \
|
||
numpy==1.24.4 cython fire pandas matplotlib statsmodels scikit-learn \
|
||
prophet pmdarima xgboost==1.7.6 \
|
||
convertdate holidays lunarcalendar
|
||
|
||
# Kullanıcıyı tekrar node olarak ayarla
|
||
USER node
|