File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,17 +37,16 @@ RUN curl -fsSL https://ollama.com/download/ollama-linux-amd64.tgz -o /tmp/ollama
3737# Install uv from official source
3838COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/
3939
40- # Copy dependency files
41- COPY pyproject.toml uv.lock ${FUNCTION_DIR}
40+ # Copy dependency files (uv.lock is not copied - uv will resolve dependencies fresh
41+ # to ensure correct platform-specific packages for the container architecture)
42+ COPY pyproject.toml ${FUNCTION_DIR}
4243
4344WORKDIR ${FUNCTION_DIR}
4445
4546# Install Python dependencies using uv
47+ # Note: --frozen is not used because we don't copy uv.lock (architecture differences)
4648RUN --mount=type=cache,target=/root/.cache/uv \
47- uv sync --frozen --no-dev --inexact
48-
49- # Copy application code
50- COPY merle/ ${FUNCTION_DIR}/merle/
49+ uv sync --no-dev --inexact
5150
5251# Copy authorizer and Zappa settings JSON
5352COPY authorizer.py ${FUNCTION_DIR}/
You can’t perform that action at this time.
0 commit comments