Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -152,6 +152,10 @@ RUN apt-get update && apt-get install -y \
|
|
| 152 |
shellcheck \
|
| 153 |
man-db manpages-dev && rm -rf /var/lib/apt/lists/*
|
| 154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
# -----------------------------
|
| 156 |
# Disable bash history for all future shells
|
| 157 |
# -----------------------------
|
|
@@ -195,8 +199,8 @@ ENV PATH=$PATH:/home/vscode/.local/bin
|
|
| 195 |
# Start the restoration step
|
| 196 |
# -----------------------------
|
| 197 |
RUN hf download ThongCoder/vscode-public-data /backup /home/vscode --repo-type dataset
|
| 198 |
-
RUN cat workspace-backup.tar.gz.part-* > workspace-backup.tar.gz
|
| 199 |
-
RUN tar -xzf workspace-backup.tar.gz
|
| 200 |
RUN rm -rf /home/vscode/backup/*
|
| 201 |
|
| 202 |
# -----------------------------
|
|
|
|
| 152 |
shellcheck \
|
| 153 |
man-db manpages-dev && rm -rf /var/lib/apt/lists/*
|
| 154 |
|
| 155 |
+
# Removing cache
|
| 156 |
+
RUN apt-get clean
|
| 157 |
+
RUN pip cache purge
|
| 158 |
+
|
| 159 |
# -----------------------------
|
| 160 |
# Disable bash history for all future shells
|
| 161 |
# -----------------------------
|
|
|
|
| 199 |
# Start the restoration step
|
| 200 |
# -----------------------------
|
| 201 |
RUN hf download ThongCoder/vscode-public-data /backup /home/vscode --repo-type dataset
|
| 202 |
+
RUN cat /home/vscode/backup/workspace-backup.tar.gz.part-* > /home/vscode/backup/workspace-backup.tar.gz
|
| 203 |
+
RUN tar -xzf /home/vscode/backup/workspace-backup.tar.gz /home/vscode/
|
| 204 |
RUN rm -rf /home/vscode/backup/*
|
| 205 |
|
| 206 |
# -----------------------------
|