Fix Docker build: copy src before pip install, update license format
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -8,14 +8,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libpq-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy dependency files
|
||||
COPY pyproject.toml ./
|
||||
# Copy all project files needed for installation
|
||||
COPY pyproject.toml README.md ./
|
||||
COPY src/ ./src/
|
||||
|
||||
# Install Python dependencies
|
||||
RUN pip install --no-cache-dir -e .
|
||||
RUN pip install --no-cache-dir .
|
||||
|
||||
# Copy application code
|
||||
COPY src/ ./src/
|
||||
# Copy remaining files
|
||||
COPY migrations/ ./migrations/
|
||||
COPY alembic.ini ./
|
||||
|
||||
|
||||
Reference in New Issue
Block a user