cube-studio/images/theia/Dockerfile-cpu-base
2022-06-08 16:47:57 +08:00

21 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# docker build -t ccr.ccs.tencentyun.com/cube-studio/notebook:vscode-ubuntu-cpu-base -f Dockerfile-cpu-base .
FROM ccr.ccs.tencentyun.com/cube-studio/theia-python:latest
USER root
# 安装中文和基础的apt工具包
RUN apt update && apt install -y --force-yes --no-install-recommends vim apt-transport-https gnupg2 ca-certificates-java rsync jq sysstat wget git dnsutils iputils-ping net-tools curl mysql-client locales sysstat && apt clean
RUN echo "alias ll='ls -alF'" >> ~/.bashrc && \
echo "alias la='ls -A'" >> ~/.bashrc && \
echo "alias vi='vim'" >> ~/.bashrc && \
/bin/bash -c "source ~/.bashrc"
RUN apt install -y libsasl2-dev libpq-dev && rm -f /usr/bin/python && rm -f /usr/local/bin/pip && rm -f /usr/bin/pip && ln -s /usr/local/bin/python3 /usr/bin/python && ln -s /usr/bin/pip3 /usr/bin/pip
# 安装python包
RUN pip3 install --upgrade pip && pip install gsutil pysnooper kubernetes simplejson sqlalchemy pandas numpy requests flask pymysql ray && \
rm -rf /tmp/* /var/tmp/* ~/.cache