code-server/dockerfile

29 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-11-02 15:24:18 +01:00
FROM codercom/code-server:latest
RUN sudo apt update
RUN sudo apt upgrade -y
2023-11-02 15:42:53 +01:00
RUN sudo apt install -y nano curl wget zip unzip tree
# install dotnet
RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
RUN sudo dpkg -i packages-microsoft-prod.deb
RUN rm packages-microsoft-prod.deb
RUN sudo apt-get update
RUN sudo apt-get install -y dotnet-sdk-7.0
RUN sudo apt-get install -y aspnetcore-runtime-7.0
# install python3.10
RUN sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev && \
wget https://www.python.org/ftp/python/3.10.12/Python-3.10.12.tgz && \
tar -xf Python-3.10.*.tgz && \
cd Python-3.10.*/ && \
./configure --prefix=/usr/local --enable-optimizations --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" && \
make -j $(nproc) && \
sudo make altinstall && \
2023-11-02 16:52:04 +01:00
python3.10 -m pip install --user --upgrade pip && \
cd ../ && rm -r Python-3.10.*/
2023-11-02 15:42:53 +01:00
2023-11-02 19:17:05 +01:00
# install node
RUN sudo apt install nodejs
RUN sudo apt install npm
2023-11-02 19:18:14 +01:00
RUN npm install -g @angular/cli