chore: fixed imports and tests configuration
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -59,12 +59,8 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
||||
uv pip install --system -e .[dev]; \
|
||||
fi
|
||||
|
||||
COPY alfred/agent/ ./agent/
|
||||
COPY alfred/application/ ./application/
|
||||
COPY alfred/domain/ ./domain/
|
||||
COPY alfred/infrastructure/ ./infrastructure/
|
||||
COPY alfred/app.py .
|
||||
COPY tests/ ./tests/
|
||||
COPY alfred/ ./alfred
|
||||
COPY tests/ ./tests
|
||||
|
||||
# ===========================================
|
||||
# Stage 3: Runtime
|
||||
@@ -96,18 +92,14 @@ RUN mkdir -p /data/memory /data/logs \
|
||||
USER appuser
|
||||
|
||||
# Set working directory (owned by appuser)
|
||||
WORKDIR /home/appuser/app
|
||||
WORKDIR /home/appuser
|
||||
|
||||
# Copy Python packages from builder stage
|
||||
COPY --from=builder /usr/local/lib/python${PYTHON_VERSION_SHORT}/site-packages /usr/local/lib/python${PYTHON_VERSION_SHORT}/site-packages
|
||||
COPY --from=builder /usr/local/bin /usr/local/bin
|
||||
|
||||
# Copy application code (already owned by appuser)
|
||||
COPY --chown=appuser:appuser alfred/agent/ ./agent/
|
||||
COPY --chown=appuser:appuser alfred/application/ ./application/
|
||||
COPY --chown=appuser:appuser alfred/domain/ ./domain/
|
||||
COPY --chown=appuser:appuser alfred/infrastructure/ ./infrastructure/
|
||||
COPY --chown=appuser:appuser alfred/app.py .
|
||||
COPY --chown=appuser:appuser alfred/ ./alfred
|
||||
|
||||
# Create volumes for persistent data
|
||||
VOLUME ["/data/memory", "/data/logs"]
|
||||
|
||||
Reference in New Issue
Block a user