FROM python:3.12-slim # Node.js 22 (rhwp.js WASM HWP/HWPX 추출용 — HanSoo 이식) RUN apt-get update && apt-get install -y --no-install-recommends \ curl ca-certificates gnupg \ && curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ && apt-get install -y --no-install-recommends nodejs \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # HWP 추출 (rhwp WASM via Node) COPY pkg/ ./pkg/ COPY app.py . COPY gov_contacts.csv . COPY static/ ./static/ COPY office/ ./office/ EXPOSE 7860 CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]