Files
KisStock0/Dockerfile
2026-02-04 00:16:34 +09:00

29 lines
745 B
Docker

# Python 3.11 Full Image (Fix for Segmentation Fault in slim)
FROM python:3.11
# Set working directory
WORKDIR /app
# Upgrade pip
RUN pip install --upgrade pip setuptools wheel
# Install core dependencies first
RUN pip install fastapi uvicorn sqlalchemy requests pandas pyyaml jinja2 python-multipart websockets python-telegram-bot watchfiles
# Install heavy dependencies separately (to debug Segfault)
RUN pip install google-generativeai
# Copy application code
COPY backend /app/backend
COPY frontend /app/frontend
COPY settings.yaml /app/settings.yaml
# Set Env Defaults
ENV PYTHONUNBUFFERED=1
# Expose Port 80
EXPOSE 80
# Run Application (Port 80)
WORKDIR /app/backend
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]