Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Revert "chore - User docker cache mount for vscode server archive (#7… (#7817)

Ray Myerscd33c5eac7e4
diff --git a/openhands/runtime/utils/runtime_templates/Dockerfile.j2 b/openhands/runtime/utils/runtime_templates/Dockerfile.j2
index 7d7f3572f3..c645777ed1 100644
--- a/openhands/runtime/utils/runtime_templates/Dockerfile.j2
+++ b/openhands/runtime/utils/runtime_templates/Dockerfile.j2
@@ -62,8 +62,7 @@ ARG RELEASE_ORG="gitpod-io"
# ARG USER_UID=1000
# ARG USER_GID=1000
-RUN --mount=type=cache,target=/var/cache/wget \
- if [ -z "${RELEASE_TAG}" ]; then \
+RUN if [ -z "${RELEASE_TAG}" ]; then \
echo "The RELEASE_TAG build arg must be set." >&2 && \
exit 1; \
fi && \
@@ -75,15 +74,12 @@ RUN --mount=type=cache,target=/var/cache/wget \
elif [ "${arch}" = "armv7l" ]; then \
arch="armhf"; \
fi && \
- cd /var/cache/wget && \
- if [ ! -f "${RELEASE_TAG}-linux-${arch}.tar.gz" ]; then \
- wget https://github.com/${RELEASE_ORG}/openvscode-server/releases/download/${RELEASE_TAG}/${RELEASE_TAG}-linux-${arch}.tar.gz ; \
- fi && \
- cd - && \
- tar -xzf /var/cache/wget/${RELEASE_TAG}-linux-${arch}.tar.gz && \
+ wget https://github.com/${RELEASE_ORG}/openvscode-server/releases/download/${RELEASE_TAG}/${RELEASE_TAG}-linux-${arch}.tar.gz && \
+ tar -xzf ${RELEASE_TAG}-linux-${arch}.tar.gz && \
if [ -d "${OPENVSCODE_SERVER_ROOT}" ]; then rm -rf "${OPENVSCODE_SERVER_ROOT}"; fi && \
mv ${RELEASE_TAG}-linux-${arch} ${OPENVSCODE_SERVER_ROOT} && \
- cp ${OPENVSCODE_SERVER_ROOT}/bin/remote-cli/openvscode-server ${OPENVSCODE_SERVER_ROOT}/bin/remote-cli/code
+ cp ${OPENVSCODE_SERVER_ROOT}/bin/remote-cli/openvscode-server ${OPENVSCODE_SERVER_ROOT}/bin/remote-cli/code && \
+ rm -f ${RELEASE_TAG}-linux-${arch}.tar.gz