zenaight commited on
Commit ·
ce34bf4
1
Parent(s): 91d9c89
Enhance Dockerfile to configure git and install VS Code Server
Browse files- Added git configuration with user details to ensure proper permissions for version control operations.
- Included installation steps for the VS Code Server, enhancing the development environment within the container.
- These updates aim to provide a more robust setup for development, facilitating better code management and editing capabilities.
- Dockerfile +11 -0
Dockerfile
CHANGED
|
@@ -8,6 +8,17 @@ RUN apt-get update && apt-get install -y \
|
|
| 8 |
git \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
COPY . .
|
|
|
|
| 8 |
git \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
+
# Set up git configuration with proper permissions
|
| 12 |
+
RUN git config --global user.email "Zenaight@users.noreply.huggingface.co" && \
|
| 13 |
+
git config --global user.name "Zenaight"
|
| 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 && \
|
| 17 |
+
tar -xzf /tmp/openvscode-server.tar.gz -C /opt && \
|
| 18 |
+
rm /tmp/openvscode-server.tar.gz && \
|
| 19 |
+
mv /opt/openvscode-server-v1.101.2-linux-x64 /opt/openvscode-server && \
|
| 20 |
+
chown -R 1000:1000 /opt/openvscode-server
|
| 21 |
+
|
| 22 |
COPY requirements.txt .
|
| 23 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 24 |
COPY . .
|