Skip to content

Commit 93d5144

Browse files
committed
cleanup build
1 parent a29d9e5 commit 93d5144

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

merle/templates/Dockerfile.template

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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
3838
COPY --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

4344
WORKDIR ${FUNCTION_DIR}
4445

4546
# Install Python dependencies using uv
47+
# Note: --frozen is not used because we don't copy uv.lock (architecture differences)
4648
RUN --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
5352
COPY authorizer.py ${FUNCTION_DIR}/

0 commit comments

Comments
 (0)