21 lines
1.4 KiB
Docker
21 lines
1.4 KiB
Docker
# python_eval 격리 실행용 이미지. 호스트 파일·키·네트워크에서 분리된 코드 인터프리터.
|
|
# 빌드: docker build -t homeclaw-pysandbox docker/pysandbox
|
|
FROM python:3.12-slim
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends fonts-nanum libgl1 libglib2.0-0 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
RUN pip install --no-cache-dir numpy pandas matplotlib scipy openpyxl pillow tabulate \
|
|
opencv-python-headless sympy scikit-learn statsmodels
|
|
# 2차 레이어(이미지 재빌드 시 위 레이어 캐시 유지): 웹/문서/3D 작업용. requests는 네트워크 자동허용 코드가 흔히 쓴다.
|
|
RUN pip install --no-cache-dir requests beautifulsoup4 lxml pyyaml seaborn \
|
|
trimesh numpy-stl shapely networkx python-docx python-pptx pdfplumber pymupdf \
|
|
reportlab xlsxwriter tqdm qrcode
|
|
# 3차 레이어: 앱별 점검(2026-10-17) — 투자·회계·날씨·음악·언어·탐정·작업실(CAD/STL)·의료통계·문서변환
|
|
RUN pip install --no-cache-dir yfinance numpy-financial pyproj xarray netCDF4 \
|
|
mido pretty_midi soundfile korean-lunar-calendar holidays jamo \
|
|
pingouin lifelines ezdxf svgwrite scikit-image manifold3d mapbox-earcut rtree pyclipper \
|
|
pyarrow xlrd pypdf markdown markdownify jinja2 xmltodict wordcloud imageio pint haversine \
|
|
rapidfuzz phonenumbers python-stdnum
|
|
ENV MPLBACKEND=Agg MPLCONFIGDIR=/tmp/mpl HOME=/tmp PYTHONDONTWRITEBYTECODE=1
|
|
WORKDIR /work
|