f3f369ad6b
CI / lint-test-build (push) Failing after 8m23s
- Create Dockerfile and docker-compose.yml for containerization - Add CI configuration for linting and testing - Implement FastAPI application with health check routes - Set up database schema using DuckDB - Include environment configuration and secrets management - Add README with project objectives and key features - Implement logging setup and configuration - Create initial tests for health route - Add HTML templates for web interface
19 lines
306 B
Docker
19 lines
306 B
Docker
FROM python:3.12-slim AS base
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
RUN pip install --no-cache-dir --upgrade pip
|
|
|
|
COPY pyproject.toml README.md /app/
|
|
COPY src /app/src
|
|
COPY web /app/web
|
|
|
|
RUN pip install --no-cache-dir .
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["python", "-m", "arbitrade.main"]
|