Simplify data ingestion service

This commit is contained in:
rafaeldpsilva
2025-09-10 15:21:53 +01:00
parent fa694443e7
commit 13556347b0
18 changed files with 826 additions and 1560 deletions

View File

@@ -21,13 +21,16 @@ COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
COPY src/ ./src/
# Create non-root user for security
RUN adduser --disabled-password --gecos '' appuser
RUN chown -R appuser:appuser /app
USER appuser
# Add src directory to PYTHONPATH
ENV PYTHONPATH="/app/src:$PYTHONPATH"
# Expose port
EXPOSE 8008
@@ -35,5 +38,5 @@ EXPOSE 8008
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8008/health || exit 1
# Start the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8008", "--reload"]
# Start the application from src directory
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8008", "--reload"]