Skip to content

Commit

Permalink
Revert "update Dockerfile to install MariaDB Connector/C"
Browse files Browse the repository at this point in the history
This reverts commit fe29366.
  • Loading branch information
vpchung committed Feb 20, 2025
1 parent 77f82e1 commit 69b0b29
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions apps/openchallenges/data-lambda/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
FROM ghcr.io/astral-sh/uv:0.5.14 AS uv

# First, bundle the dependencies into the task root.
FROM python:3.13.2-slim AS builder

RUN apt-get update && apt-get install --no-install-recommends -y \
gcc \
libmariadb3 \
libmariadb-dev
FROM public.ecr.aws/lambda/python:3.13 AS builder

# Enable bytecode compilation, to improve cold-start performance.
ENV UV_COMPILE_BYTECODE=1
Expand All @@ -26,12 +21,12 @@ COPY pyproject.toml uv.lock ./

# Generate requirements.txt and install dependencies
RUN uv export --frozen --no-emit-workspace --no-dev --no-editable -o requirements.txt && \
uv pip install -r requirements.txt --target .
uv pip install -r requirements.txt --target "${LAMBDA_TASK_ROOT}"

FROM public.ecr.aws/lambda/python:3.13

# Copy the runtime dependencies from the builder stage.
COPY --from=builder /app/. ${LAMBDA_TASK_ROOT}/
COPY --from=builder ${LAMBDA_TASK_ROOT} ${LAMBDA_TASK_ROOT}

# Copy the application code.
COPY ./openchallenges_data_lambda ${LAMBDA_TASK_ROOT}
Expand Down

0 comments on commit 69b0b29

Please sign in to comment.