dockerimg: update tests for last commit
diff --git a/dockerimg/testdata/testcreatedockerfile_python_misery.dockerfile b/dockerimg/testdata/testcreatedockerfile_python_misery.dockerfile
index d7cd328..866f21a 100644
--- a/dockerimg/testdata/testcreatedockerfile_python_misery.dockerfile
+++ b/dockerimg/testdata/testcreatedockerfile_python_misery.dockerfile
@@ -1,4 +1,4 @@
-FROM ghcr.io/boldsoftware/sketch:3a03b430af3cabf3415d263b7803b311
+FROM ghcr.io/boldsoftware/sketch:f5b4ebd9ca15d3dbd2cd08e6e7ab9548
ARG GIT_USER_EMAIL
ARG GIT_USER_NAME
@@ -7,19 +7,32 @@
git config --global user.name "$GIT_USER_NAME" && \
git config --global http.postBuffer 524288000
-LABEL sketch_context="2c865c897e88f0bc021007a21d2ed036f3918b5e8b9dbbd5708662980afb4ee6"
+LABEL sketch_context="26cda6870ba9562802f4a56d488b5f48d95d8ec7834ba62f043bbd50a2a18c1e"
COPY . /app
WORKDIR /app
RUN if [ -f go.mod ]; then go mod download; fi
-# Install Python 3.11 and DVC as required by the project
+# Switch to lenient shell so we are more likely to get past failing extra_cmds.
+SHELL ["/bin/bash", "-uo", "pipefail", "-c"]
+
+# Install Python 3.11 and pip
RUN apt-get update && \
- apt-get install -y --no-install-recommends python3.11 python3.11-venv python3-pip || true && \
- apt-get clean && \
+ apt-get install -y --no-install-recommends python3.11 python3.11-dev python3.11-venv python3-pip || true
+
+# Set up Python alternatives to make 3.11 the default
+RUN if command -v update-alternatives &> /dev/null; then \
+ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 || true; \
+ fi
+
+# Install DVC tool
+RUN pip3 install dvc || true
+
+# Clean up apt cache
+RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
-# Install DVC
-RUN pip3 install dvc || true
+# Switch back to strict shell after extra_cmds.
+SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
CMD ["/bin/sketch"]