zenaight commited on
Commit ·
6364981
1
Parent(s): 8ae62a5
Refactor Dockerfile to streamline setup by removing unnecessary components
Browse files- Removed installation steps for system dependencies and the VS Code Server to simplify the Dockerfile.
- This change focuses on reducing build time and maintaining a cleaner setup, ensuring only essential components are included for the application.
- Dockerfile +0 -21
Dockerfile
CHANGED
|
@@ -1,26 +1,5 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
WORKDIR /code
|
| 3 |
-
|
| 4 |
-
# Install system dependencies
|
| 5 |
-
RUN apt-get update && apt-get install -y \
|
| 6 |
-
wget \
|
| 7 |
-
curl \
|
| 8 |
-
git \
|
| 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 && \
|
| 19 |
-
tar -xzf /tmp/openvscode-server.tar.gz -C /opt && \
|
| 20 |
-
rm /tmp/openvscode-server.tar.gz && \
|
| 21 |
-
mv /opt/openvscode-server-v1.101.2-linux-x64 /opt/openvscode-server && \
|
| 22 |
-
chown -R 1000:1000 /opt/openvscode-server
|
| 23 |
-
|
| 24 |
COPY requirements.txt .
|
| 25 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 26 |
COPY . .
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
WORKDIR /code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
COPY requirements.txt .
|
| 4 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 5 |
COPY . .
|