File size: 991 Bytes
250a9db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM gitpod/openvscode-server:latest
USER root

RUN apt-get update && apt-get install -y \
    curl \
    git \
    nodejs \
    npm \
    && rm -rf /var/lib/apt/lists/*

RUN npm install -g pm2

ENV OPENVSCODE_SERVER_ROOT="/home/.openvscode-server"
ENV OPENVSCODE="${OPENVSCODE_SERVER_ROOT}/bin/openvscode-server"

USER openvscode-server 

# # copy ms-vscode-remote.remote-ssh-0.99.2023032015.vsix file to container
# COPY ms-vscode-remote.remote-ssh-0.99.2023032015.vsix /home/.openvscode-server/extensions/ms-vscode-remote.remote-ssh-0.99.2023032015.vsix
# # install ms-vscode-remote.remote-ssh-0.99.2023032015.vsix
# RUN ${OPENVSCODE} --install-extension /home/.openvscode-server/extensions/ms-vscode-remote.remote-ssh-0.99.2023032015.vsix

RUN ${OPENVSCODE} --install-extension njzy.stats-bar
RUN ${OPENVSCODE} --install-extension cweijan.vscode-ssh

EXPOSE 7860

ENTRYPOINT [ "/bin/sh", "-c", "exec ${OPENVSCODE} --host 0.0.0.0 --port 7860 --without-connection-token \"${@}\"", "--" ]