zenaight commited on
Commit ·
8ae62a5
1
Parent(s): ce34bf4
Refactor Dockerfile to improve git configuration setup
Browse files- Updated the git configuration process to create a dedicated `.gitconfig` file in the root directory, enhancing clarity and organization.
- This change aims to ensure proper user details are set for version control operations while maintaining a clean Dockerfile structure.
- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -9,8 +9,10 @@ RUN apt-get update && apt-get install -y \
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
# Set up git configuration with proper permissions
|
| 12 |
-
RUN
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# Install VS Code Server
|
| 16 |
RUN wget https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v1.101.2/openvscode-server-v1.101.2-linux-x64.tar.gz -O /tmp/openvscode-server.tar.gz && \
|
|
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
# Set up git configuration with proper permissions
|
| 12 |
+
RUN mkdir -p /root/.git && \
|
| 13 |
+
echo "[user]" > /root/.gitconfig && \
|
| 14 |
+
echo " email = Zenaight@users.noreply.huggingface.co" >> /root/.gitconfig && \
|
| 15 |
+
echo " name = Zenaight" >> /root/.gitconfig
|
| 16 |
|
| 17 |
# Install VS Code Server
|
| 18 |
RUN wget https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v1.101.2/openvscode-server-v1.101.2-linux-x64.tar.gz -O /tmp/openvscode-server.tar.gz && \
|