jmanhype commited on
Commit
84968aa
Β·
1 Parent(s): 76fb838

test: completely change Dockerfile to test if it's being used

Browse files
Files changed (1) hide show
  1. scripts/gradio/Dockerfile +13 -63
scripts/gradio/Dockerfile CHANGED
@@ -1,67 +1,17 @@
1
- FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
2
 
3
- ENV DEBIAN_FRONTEND=noninteractive
4
- ENV PYTHONUNBUFFERED=1
 
 
5
 
6
- # Install system dependencies
7
- USER root
8
- RUN apt-get update && apt-get install -y \
9
- python3.10 \
10
- python3-pip \
11
- git \
12
- wget \
13
- curl \
14
- ffmpeg \
15
- && rm -rf /var/lib/apt/lists/*
16
 
17
- # Set up git config file
18
- RUN rm -rf /etc/gitconfig && \
19
- touch /etc/gitconfig && \
20
- chmod 666 /etc/gitconfig && \
21
- git config --system user.email "[email protected]" && \
22
- git config --system user.name "jmanhype"
23
 
24
- # Create necessary directories with proper permissions
25
- RUN mkdir -p /home/user/.config/matplotlib && \
26
- mkdir -p /home/user/app/flagged && \
27
- chown -R 1000:1000 /home/user/.config && \
28
- chown -R 1000:1000 /home/user/app && \
29
- chmod -R 777 /home/user/.config && \
30
- chmod -R 777 /home/user/app
31
-
32
- # Set up a new user named "user" with user ID 1000
33
- RUN useradd -m -u 1000 user
34
-
35
- # Switch to the "user" user
36
- USER user
37
-
38
- # Set home to the user's home directory and configure matplotlib
39
- ENV HOME=/home/user \
40
- PATH=/home/user/.local/bin:$PATH \
41
- SKIP_VSCODE=true \
42
- DISABLE_VSCODE_INSTALLATION=true \
43
- HF_SPACE_NO_VSCODE=true \
44
- MPLCONFIGDIR=/home/user/.config/matplotlib
45
-
46
- # Set the working directory to the user's home directory
47
- WORKDIR $HOME/app
48
-
49
- # Install Python dependencies
50
- COPY --chown=user requirements.txt .
51
- RUN pip install --no-cache-dir -r requirements.txt
52
-
53
- # Clone repository without git config
54
- RUN git clone -b hg_space --recursive https://github.com/TMElyralab/MuseV.git
55
-
56
- # Set permissions
57
- RUN chmod -R 777 /home/user/app/MuseV
58
-
59
- WORKDIR /home/user/app/MuseV/scripts/gradio/
60
-
61
- # Add entrypoint script
62
- COPY --chown=user entrypoint.sh ./entrypoint.sh
63
- RUN chmod +x ./entrypoint.sh
64
-
65
- EXPOSE 7860
66
-
67
- CMD ["./entrypoint.sh"]
 
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!" && \
6
+ cat /test_file.txt
7
 
8
+ # Create a very obvious test directory
9
+ RUN mkdir -p /THIS_IS_A_TEST_DIRECTORY && \
10
+ echo "TEST CONTENT" > /THIS_IS_A_TEST_DIRECTORY/test.txt
 
 
 
 
 
 
 
11
 
12
+ # Print test message during build
13
+ 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"]