ThongCoder commited on
Commit
57342a4
·
verified ·
1 Parent(s): 6179a48

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -12
Dockerfile CHANGED
@@ -79,18 +79,6 @@ COPY app.py /app.py
79
  COPY backup.py /home/backup.py
80
  RUN chmod -R 777 /home
81
 
82
- # -----------------------------
83
- # Create vscode user
84
- # -----------------------------
85
- RUN useradd -ms /bin/bash vscode \
86
- && echo "vscode:vscode" | chpasswd \
87
- && mkdir -p /home/vscode/.ssh \
88
- && chown -R vscode:vscode /home/vscode
89
-
90
- USER vscode
91
- RUN pip install huggingface_hub[cli]
92
- ENV PATH=$PATH:/home/vscode/.local/bin
93
-
94
  # -----------------------------
95
  # Finishing touches -- you can comment these if not needed
96
  # -----------------------------
@@ -129,6 +117,17 @@ RUN echo "===== Installed versions =====" && \
129
  git --version && git lfs version && \
130
  jq --version && htop --version && \
131
  fzf --version && rg --version && ag --version
 
 
 
 
 
 
 
 
 
 
 
132
 
133
  # -----------------------------
134
  # Entrypoint: restore + code-server
 
79
  COPY backup.py /home/backup.py
80
  RUN chmod -R 777 /home
81
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  # -----------------------------
83
  # Finishing touches -- you can comment these if not needed
84
  # -----------------------------
 
117
  git --version && git lfs version && \
118
  jq --version && htop --version && \
119
  fzf --version && rg --version && ag --version
120
+
121
+ # -----------------------------
122
+ # Create vscode user
123
+ # -----------------------------
124
+ RUN useradd -ms /bin/bash vscode \
125
+ && echo "vscode:vscode" | chpasswd \
126
+ && mkdir -p /home/vscode/.ssh \
127
+ && chown -R vscode:vscode /home/vscode
128
+
129
+ USER vscode
130
+ ENV PATH=$PATH:/home/vscode/.local/bin
131
 
132
  # -----------------------------
133
  # Entrypoint: restore + code-server