docker build python based on alpine

Introduction

I am assuming python3.5.

I want to use python with alpine

Official. You can do as follows. (90MB)

docker run -it python:3.5-alpine

I want to use python numpy with alpine

--For 2.7, it's in testing (https://pkgs.alpinelinux.org/packages?name=py-numpy&repo=testing&arch=all&maintainer=all). --Even in 3.5, you can do your best based on here. --There is a better way. You can use miniconda by using frolvlad / alpine-glibc that enables glibc with alpine.

If you make an image with the Dockerfile below, it is 136MB, but you can easily install both numpy and scipy with "conda install numpy scipy".

Dockerfile


FROM frolvlad/alpine-glibc

ENV PATH=/opt/conda/bin:$PATH \
    LANG=C.UTF-8 \
    MINICONDA=Miniconda3-latest-Linux-x86_64.sh
RUN apk add --no-cache bash wget && \
    wget -q --no-check-certificate https://repo.continuum.io/miniconda/$MINICONDA && \
    bash /Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && \
    ln -s /opt/conda/bin/* /usr/local/bin/ && \
    rm -rf /root/.[acpw]* /$MINICONDA /opt/conda/pkgs/*
CMD ["bash"]

I made tsutomu7 / alpine-python for scientific computing. (782MB)

For Kitematic, "tsutomu7 / alpine-python: jupyter" is convenient to use with a click.

that's all

Recommended Posts

docker build python based on alpine
Build CGI Server running on Python 3 on Docker
build Python on Ubuntu
Install Python 3.6 on Docker
Build Python environment on Windows
Build python environment on windows
How to build a Django (python) environment on docker
Build Mysql + Python environment with docker
Run TensorFlow Docker Image on Python3
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
Build a python3 environment on CentOS7
Build python 1.0
Build load test tool Locust 1.1 on Docker
Build Jupyter Lab (Python) environment with Docker
Python 2.7, 3.4, 3.5 extension module build environment on Windows
Build Python3 and OpenCV environment on Ubuntu 18.04
Build a python environment on MacOS (Catallina)
Created Ubuntu, Python, OpenCV environment on Docker
Build Python environment with Anaconda on Mac
Build a Python + OpenCV environment on Cloud9
pykintone on Docker
Python on Windows
twitter on python3
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Easy construction]
python on mac
python at docker
Python on Windbg
Stray build Python-3.8.5 on CentOS without root privileges
Build a LAMP environment on your local Docker
Build python environment with pyenv on EC2 (ubuntu)
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Simply build a Python 3 execution environment on Windows
Build a python environment with ansible on centos6
Build a Python environment on Mac (Mountain Lion)
[Python] Build a Django development environment with Docker
Build a Python development environment on your Mac
Build Python3 + flask environment on GCP Compute Engine
Build PyPy and Python execution environment with Docker
Build a Python development environment on Raspberry Pi
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Trial and error]
Build a Docker image containing the private repository Python library on GitHub Actions
Python conda on cygwin
Install python on WSL
[Docker] Tutorial (Python + php)
Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
Install Python3 on Mac and build environment [Definitive Edition]
PyOpenGL setup on Python 3
Install Python on Pidora.
Install Scrapy on python3
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
Install docker on Fedora31
Build a machine learning Python environment on Mac OS
Build a Python extension for E-Cell 4 on Windows 7 (64bit)
Install Python on Mac
Install Python 3 on Mac
Install Python3.4 on CentOS 6.6
Build a GVim-based Python development environment on Windows 10 (1) Installation
Installing pandas on python2.6
Build a Python development environment on Mac OS X
python basic on windows ②
Build a Python environment on your Mac using pyenv