Skip to content

Commit 45b4afb

Browse files
committed
addressing more pr comments about docker/make files
1 parent 74f1416 commit 45b4afb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
#####################

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
5154
RUN 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}
8285
ENV PYTHONPATH="${LAMBDA_TASK_ROOT}:${PYTHONPATH}"
8386
ENV 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-
8888
ENTRYPOINT [ "bash", "-c", "${LAMBDA_TASK_ROOT}/docker-entrypoint.sh" ]

0 commit comments

Comments
 (0)