Files
keinasystem/backend/Dockerfile
Akira 30aca109d7 Summary
We've been implementing KeinaSystem, an agricultural management system with Django/Next.js and Docker:
Completed:
- Day 1-2: Docker setup, Django configuration (REST, JWT, CORS, PostGIS, Japan timezone)
- Day 3: Data models (OfficialKyosaiField, OfficialChusankanField, Field with ManyToMany, Crop, Variety, Plan)
- Day 4: Import API endpoints for ODS files
- Day 5: init_crops command, serializers, ViewSets, summary/copy APIs
Current Issue:
- Day 6: PDF generation (/api/reports/kyosai/2025/) is returning HTTP 500 error
Next Step:
Debug the PDF generation error by checking backend container logs to see the specific exception.
Want me to check the container logs to diagnose the PDF 500 error?
2026-02-15 12:53:05 +09:00

32 lines
601 B
Docker

FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
gcc \
g++ \
postgresql-client \
libpq-dev \
libgdal-dev \
libgeos-dev \
libproj-dev \
fonts-noto-cjk \
libgirepository1.0-dev \
libcairo2 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
gir1.2-pango-1.0 \
&& rm -rf /var/lib/apt/lists/*
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV C_INCLUDE_PATH=/usr/include/gdal
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]