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

fix: install git and configure git user

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -12
Dockerfile CHANGED
@@ -1,7 +1,10 @@
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 && \
@@ -17,15 +20,8 @@ RUN echo "=================================================" && \
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"]
 
1
  FROM ubuntu:22.04
2
 
3
+ # Install essential packages first
4
+ RUN apt-get update && apt-get install -y \
5
+ wget \
6
+ git \
7
+ && rm -rf /var/lib/apt/lists/*
8
 
9
  # This is a test Dockerfile to see if it's actually being used
10
  RUN echo "TESTING IF THIS DOCKERFILE IS ACTUALLY USED" > /test_file.txt && \
 
20
  echo "THIS IS A TEST BUILD - IF YOU SEE THIS, THE DOCKERFILE IS BEING USED" && \
21
  echo "================================================="
22
 
23
+ # Configure git
24
+ RUN git config --global user.email "[email protected]" && \
25
+ git config --global user.name "jmanhype"
 
 
 
 
 
 
 
26
 
27
  CMD ["cat", "/test_file.txt"]