MuseV / Dockerfile
jmanhype
fix: add wget and VSCode prevention to test Dockerfile
4b7aec3
raw
history blame
1.18 kB
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"]