jmanhype commited on
Commit
dbeac5f
Β·
1 Parent(s): 581e8d0

test: replace Dockerfile with test version to debug build process

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -47
Dockerfile CHANGED
@@ -1,51 +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
- RUN apt-get update && apt-get install -y \
7
- python3.10 \
8
- python3-pip \
9
- git \
10
- curl \
11
- ffmpeg \
12
- && rm -rf /var/lib/apt/lists/*
13
 
14
- # Download VSCode server using curl (if needed)
15
- RUN if [ ! -d "/opt/openvscode-server" ]; then \
16
- curl -L https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v1.86.2/openvscode-server-v1.86.2-linux-x64.tar.gz -o /tmp/openvscode-server.tar.gz && \
17
- tar -xzf /tmp/openvscode-server.tar.gz -C /opt && \
18
- rm /tmp/openvscode-server.tar.gz && \
19
- mv /opt/openvscode-server-v1.86.2-linux-x64 /opt/openvscode-server && \
20
- chown -R 1000:1000 /opt/openvscode-server || true; \
21
- fi
22
 
23
- # Set up git config file
24
- RUN touch /etc/gitconfig && \
25
- chmod 666 /etc/gitconfig && \
26
- git config --system user.email "[email protected]" && \
27
- git config --system user.name "jmanhype"
28
-
29
- RUN useradd -m -u 1000 user && \
30
- mkdir -p /home/user/.config/git && \
31
- touch /home/user/.gitconfig && \
32
- chown -R user:user /home/user/.gitconfig && \
33
- chmod 666 /home/user/.gitconfig
34
-
35
- USER user
36
- ENV PATH="/home/user/.local/bin:$PATH"
37
- ENV HOME="/home/user"
38
- ENV SKIP_VSCODE=true
39
- ENV DISABLE_VSCODE_INSTALLATION=true
40
- ENV HF_SPACE_NO_VSCODE=true
41
-
42
- WORKDIR /home/user/app
43
-
44
- COPY --chown=user . .
45
-
46
- RUN pip install --no-cache-dir --upgrade pip && \
47
- pip install --no-cache-dir -r requirements.txt
48
-
49
- EXPOSE 7860
50
-
51
- CMD ["python3", "-m", "scripts.gradio.app_gradio_space"]
 
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"]