File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -151,8 +151,6 @@ coverage-server: install ## Run coverage server
151151.PHONY : coverage-server
152152
153153
154-
155-
156154# ####################
157155# #@ Docker Commands
158156# ####################
Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ RUN --mount=type=ssh \
4747 uv export --frozen --no-dev --group docker --no-editable -o requirements-autogen.txt && \
4848 uv pip install -r requirements-autogen.txt --target ${LAYER_DIR}
4949
50+ # Clean up build-time artifacts that might have been created (defensive)
51+ RUN find ${LAYER_DIR} -type d -name "__pycache__" -prune -exec rm -rf {} +
52+
5053# Copy entrypoint script alongside the vendored packages
5154RUN cp ${REPO_ROOT}/docker/docker-entrypoint.sh ${LAYER_DIR}/docker-entrypoint.sh \
5255 && chmod +x ${LAYER_DIR}/docker-entrypoint.sh
@@ -82,7 +85,4 @@ COPY --from=builder /opt/lambda-task ${LAMBDA_TASK_ROOT}
8285ENV PYTHONPATH="${LAMBDA_TASK_ROOT}:${PYTHONPATH}"
8386ENV PATH="${LAMBDA_TASK_ROOT}/bin:${PATH}"
8487
85- # Clean up build-time artifacts that might have been copied (defensive)
86- RUN find ${LAMBDA_TASK_ROOT} -type d -name "__pycache__" -prune -exec rm -rf {} +
87-
8888ENTRYPOINT [ "bash" , "-c" , "${LAMBDA_TASK_ROOT}/docker-entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments