jmanhype commited on
Commit
4b7aec3
Β·
1 Parent(s): dbeac5f

fix: add wget and VSCode prevention to test Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile CHANGED
@@ -1,5 +1,8 @@
1
  FROM ubuntu:22.04
2
 
 
 
 
3
  # This is a test Dockerfile to see if it's actually being used
4
  RUN echo "TESTING IF THIS DOCKERFILE IS ACTUALLY USED" > /test_file.txt && \
5
  echo "If you see this message, the correct Dockerfile is being used!" && \
@@ -14,4 +17,15 @@ RUN echo "=================================================" && \
14
  echo "THIS IS A TEST BUILD - IF YOU SEE THIS, THE DOCKERFILE IS BEING USED" && \
15
  echo "================================================="
16
 
 
 
 
 
 
 
 
 
 
 
 
17
  CMD ["cat", "/test_file.txt"]
 
1
  FROM ubuntu:22.04
2
 
3
+ # Install wget first
4
+ RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
5
+
6
  # This is a test Dockerfile to see if it's actually being used
7
  RUN echo "TESTING IF THIS DOCKERFILE IS ACTUALLY USED" > /test_file.txt && \
8
  echo "If you see this message, the correct Dockerfile is being used!" && \
 
17
  echo "THIS IS A TEST BUILD - IF YOU SEE THIS, THE DOCKERFILE IS BEING USED" && \
18
  echo "================================================="
19
 
20
+ # Create VSCode server directory to prevent installation
21
+ RUN mkdir -p /opt/openvscode-server && \
22
+ touch /opt/openvscode-server/FAKE_INSTALL_TO_PREVENT_DOWNLOAD && \
23
+ chown -R 1000:1000 /opt/openvscode-server
24
+
25
+ # Set environment variables to try to skip VSCode
26
+ ENV SKIP_VSCODE=true \
27
+ DISABLE_VSCODE_INSTALLATION=true \
28
+ HF_SPACE_NO_VSCODE=true \
29
+ VSCODE_ALREADY_INSTALLED=true
30
+
31
  CMD ["cat", "/test_file.txt"]