You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
750 B
Docker
27 lines
750 B
Docker
# Simple Dockerfile for SEC Investment API with SQLite
|
|
FROM python:3.11-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install git for yfinance-plus installation
|
|
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy requirements and install dependencies
|
|
COPY requirements-api.txt .
|
|
RUN pip install --no-cache-dir -r requirements-api.txt
|
|
|
|
# Install updated yfinance_plus from Gitea repository
|
|
RUN pip install git+https://gitea.yirugi.synology.me/yirugi/yfinance_plus.git@9fae52e
|
|
|
|
# Copy application code
|
|
COPY . .
|
|
|
|
# Create data directory for SQLite
|
|
RUN mkdir -p /app/data
|
|
|
|
# Expose port
|
|
EXPOSE 18000
|
|
|
|
# Run the application
|
|
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "18000", "--reload"] |