File size: 1,176 Bytes
dbeac5f
06e9d12
4b7aec3
 
 
dbeac5f
 
 
 
06e9d12
dbeac5f
 
 
06e9d12
dbeac5f
 
 
 
581e8d0
4b7aec3
 
 
 
 
 
 
 
 
 
 
dbeac5f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:22.04

# Install wget first
RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*

# This is a test Dockerfile to see if it's actually being used
RUN echo "TESTING IF THIS DOCKERFILE IS ACTUALLY USED" > /test_file.txt && \
    echo "If you see this message, the correct Dockerfile is being used!" && \
    cat /test_file.txt

# Create a very obvious test directory
RUN mkdir -p /THIS_IS_A_TEST_DIRECTORY && \
    echo "TEST CONTENT" > /THIS_IS_A_TEST_DIRECTORY/test.txt

# Print test message during build
RUN echo "=================================================" && \
    echo "THIS IS A TEST BUILD - IF YOU SEE THIS, THE DOCKERFILE IS BEING USED" && \
    echo "================================================="

# Create VSCode server directory to prevent installation
RUN mkdir -p /opt/openvscode-server && \
    touch /opt/openvscode-server/FAKE_INSTALL_TO_PREVENT_DOWNLOAD && \
    chown -R 1000:1000 /opt/openvscode-server

# Set environment variables to try to skip VSCode
ENV SKIP_VSCODE=true \
    DISABLE_VSCODE_INSTALLATION=true \
    HF_SPACE_NO_VSCODE=true \
    VSCODE_ALREADY_INSTALLED=true

CMD ["cat", "/test_file.txt"]