dockerimg: remove buildx dependencies from Dockerfile
Main changes:
1. Removed --mount=type=cache for apt-get operations and added cleanup steps
2. Removed --mount=type=cache for Go tools installation
Co-Authored-By: sketch <hello@sketch.dev>
diff --git a/dockerimg/testdata/testcreatedockerfile_python_misery.dockerfile b/dockerimg/testdata/testcreatedockerfile_python_misery.dockerfile
index c400402..c74aeb1 100644
--- a/dockerimg/testdata/testcreatedockerfile_python_misery.dockerfile
+++ b/dockerimg/testdata/testcreatedockerfile_python_misery.dockerfile
@@ -1,4 +1,4 @@
-FROM ghcr.io/boldsoftware/sketch:86ef7a672f85139e73f38d4cdf78d95f
+FROM ghcr.io/boldsoftware/sketch:3a03b430af3cabf3415d263b7803b311
ARG GIT_USER_EMAIL
ARG GIT_USER_NAME
@@ -6,20 +6,24 @@
RUN git config --global user.email "$GIT_USER_EMAIL" && \
git config --global user.name "$GIT_USER_NAME"
-LABEL sketch_context="6a2899d2fa46e4791d008adc7847bb0f374fd82e23ecc9ab7a1f5f188bf7fff5"
+LABEL sketch_context="00e8cee1c3621b40cc6b977430392a621b3d8dea06b12191c082f9bda155832b"
COPY . /app
WORKDIR /app
RUN if [ -f go.mod ]; then go mod download; fi
-# Install Python 3.11 (if not present in base image)
-RUN apt-get update && apt-get install -y python3.11 python3.11-venv python3-pip || true
+# Install Python 3.11 and set it up as the default python3
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends python3.11 python3.11-venv python3-pip || true && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists/*
-# Install DVC tool as requested in README
-RUN pip install dvc || true
+# Create symlink to make python3.11 the default python3
+RUN if [ -f /usr/bin/python3.11 ]; then \
+ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1; \
+ fi
-# Create and activate Python virtual environment
-RUN python3.11 -m venv /app/.venv || true
-ENV PATH="/app/.venv/bin:$PATH"
+# Install dvc (Data Version Control) as mentioned in README
+RUN pip3 install dvc || true
CMD ["/bin/sketch"]