├── Dockerfile ├── README.md ├── docker-compose.yml └── version-list.txt /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | RUN apt-get update && apt-get install -y sudo wget vim curl gawk make gcc 4 | RUN sudo apt-get install bzip2 5 | 6 | RUN wget https://repo.continuum.io/archive/Anaconda3-2019.03-Linux-x86_64.sh && \ 7 | sh Anaconda3-2019.03-Linux-x86_64.sh -b && \ 8 | rm -f Anaconda3-2019.03-Linux-x86_64.sh && \ 9 | sudo curl -sL https://deb.nodesource.com/setup_16.x | sudo bash - && \ 10 | sudo apt-get install -y nodejs 11 | 12 | ENV PATH $PATH:/root/anaconda3/bin 13 | 14 | RUN pip install --upgrade pip 15 | RUN pip install pandas_datareader 16 | RUN pip install mplfinance 17 | RUN pip install japanize-matplotlib 18 | 19 | RUN wget --quiet http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz -O ta-lib-0.4.0-src.tar.gz && \ 20 | tar xvf ta-lib-0.4.0-src.tar.gz && \ 21 | cd ta-lib/ && \ 22 | ./configure --prefix=/usr && \ 23 | make && \ 24 | sudo make install && \ 25 | cd .. && \ 26 | pip install TA-Lib && \ 27 | rm -R ta-lib ta-lib-0.4.0-src.tar.gz 28 | 29 | RUN mkdir /workspace 30 | 31 | CMD ["jupyter-lab", "--ip=0.0.0.0","--port=8888" ,"--no-browser", "--allow-root", "--LabApp.token=''"] 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # docker-python 2 | 3 | ## コンテナ作成方法
4 | ```git clone https://github.com/kino-code/docker-python.git (ディレクトリ名を記述)```
5 | ```cd (ディレクトリ名を記述)```
6 | ```docker-compose up --build -d```

7 | 8 | ## Dockerの全削除の方法
9 | Dockerのイメージやコンテナを削除します。下記を上から下まで実行した上で、それを3回繰り返してください。
10 | 他のイメージやコンテナも削除されるのでそれをしっかり理解した上で使いましょう。
11 | ```docker image prune -af```
12 | ```docker volume prune -f```
13 | ```docker container prune -f```
14 | ```docker system prune -f```
15 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3.7" 2 | services: 3 | jupyterlab: 4 | build: . 5 | container_name: docker-python 6 | volumes: 7 | - '.:/workspace' 8 | environment: 9 | - JUPYTER_ENABLE_LAB=yes 10 | ports: 11 | - "8888:8888" 12 | platform: linux/amd64 -------------------------------------------------------------------------------- /version-list.txt: -------------------------------------------------------------------------------- 1 | alabaster==0.7.12 2 | anaconda-client==1.7.2 3 | anaconda-navigator==1.9.7 4 | anaconda-project==0.8.2 5 | asn1crypto==0.24.0 6 | astroid==2.2.5 7 | astropy==3.1.2 8 | atomicwrites==1.3.0 9 | attrs==19.1.0 10 | Babel==2.6.0 11 | backcall==0.1.0 12 | backports.os==0.1.1 13 | backports.shutil-get-terminal-size==1.0.0 14 | beautifulsoup4==4.7.1 15 | bitarray==0.8.3 16 | bkcharts==0.2 17 | bleach==3.1.0 18 | bokeh==1.0.4 19 | boto==2.49.0 20 | Bottleneck==1.2.1 21 | certifi==2019.3.9 22 | cffi==1.12.2 23 | chardet==3.0.4 24 | Click==7.0 25 | cloudpickle==0.8.0 26 | clyent==1.2.2 27 | colorama==0.4.1 28 | conda==4.6.11 29 | conda-build==3.17.8 30 | conda-verify==3.1.1 31 | contextlib2==0.5.5 32 | cryptography==2.6.1 33 | cycler==0.10.0 34 | Cython==0.29.6 35 | cytoolz==0.9.0.1 36 | dask==1.1.4 37 | decorator==4.4.0 38 | defusedxml==0.5.0 39 | distributed==1.26.0 40 | docutils==0.14 41 | entrypoints==0.3 42 | et-xmlfile==1.0.1 43 | fastcache==1.0.2 44 | filelock==3.0.10 45 | Flask==1.0.2 46 | future==0.17.1 47 | gevent==1.4.0 48 | glob2==0.6 49 | gmpy2==2.0.8 50 | greenlet==0.4.15 51 | h5py==2.9.0 52 | heapdict==1.0.0 53 | html5lib==1.0.1 54 | idna==2.8 55 | imageio==2.5.0 56 | imagesize==1.1.0 57 | importlib-metadata==0.0.0 58 | ipykernel==5.1.0 59 | ipython==7.4.0 60 | ipython_genutils==0.2.0 61 | ipywidgets==7.4.2 62 | isort==4.3.16 63 | itsdangerous==1.1.0 64 | japanize-matplotlib==1.1.3 65 | jdcal==1.4 66 | jedi==0.13.3 67 | jeepney==0.4 68 | Jinja2==2.10 69 | jsonschema==3.0.1 70 | jupyter==1.0.0 71 | jupyter-client==5.2.4 72 | jupyter-console==6.0.0 73 | jupyter-core==4.4.0 74 | jupyterlab==0.35.4 75 | jupyterlab-server==0.2.0 76 | keyring==18.0.0 77 | kiwisolver==1.0.1 78 | lazy-object-proxy==1.3.1 79 | libarchive-c==2.8 80 | lief==0.9.0 81 | llvmlite==0.28.0 82 | locket==0.2.0 83 | lxml==4.3.2 84 | MarkupSafe==1.1.1 85 | matplotlib==3.0.3 86 | mccabe==0.6.1 87 | mistune==0.8.4 88 | mkl-fft==1.0.10 89 | mkl-random==1.0.2 90 | more-itertools==6.0.0 91 | mplfinance==0.12.8b9 92 | mpmath==1.1.0 93 | msgpack==0.6.1 94 | multipledispatch==0.6.0 95 | navigator-updater==0.2.1 96 | nbconvert==5.4.1 97 | nbformat==4.4.0 98 | networkx==2.2 99 | nltk==3.4 100 | nose==1.3.7 101 | notebook==5.7.8 102 | numba==0.43.1 103 | numexpr==2.6.9 104 | numpy==1.16.2 105 | numpydoc==0.8.0 106 | olefile==0.46 107 | openpyxl==2.6.1 108 | packaging==19.0 109 | pandas==0.24.2 110 | pandas-datareader==0.10.0 111 | pandocfilters==1.4.2 112 | parso==0.3.4 113 | partd==0.3.10 114 | path.py==11.5.0 115 | pathlib2==2.3.3 116 | patsy==0.5.1 117 | pep8==1.7.1 118 | pexpect==4.6.0 119 | pickleshare==0.7.5 120 | Pillow==5.4.1 121 | pkginfo==1.5.0.1 122 | pluggy==0.9.0 123 | ply==3.11 124 | prometheus-client==0.6.0 125 | prompt-toolkit==2.0.9 126 | psutil==5.6.1 127 | ptyprocess==0.6.0 128 | py==1.8.0 129 | pycodestyle==2.5.0 130 | pycosat==0.6.3 131 | pycparser==2.19 132 | pycrypto==2.6.1 133 | pycurl==7.43.0.2 134 | pyflakes==2.1.1 135 | Pygments==2.3.1 136 | pylint==2.3.1 137 | pyodbc==4.0.26 138 | pyOpenSSL==19.0.0 139 | pyparsing==2.3.1 140 | pyrsistent==0.14.11 141 | PySocks==1.6.8 142 | pytest==4.3.1 143 | pytest-arraydiff==0.3 144 | pytest-astropy==0.5.0 145 | pytest-doctestplus==0.3.0 146 | pytest-openfiles==0.3.2 147 | pytest-remotedata==0.3.1 148 | python-dateutil==2.8.0 149 | pytz==2018.9 150 | PyWavelets==1.0.2 151 | PyYAML==5.1 152 | pyzmq==18.0.0 153 | QtAwesome==0.5.7 154 | qtconsole==4.4.3 155 | QtPy==1.7.0 156 | requests==2.21.0 157 | rope==0.12.0 158 | ruamel_yaml==0.15.46 159 | scikit-image==0.14.2 160 | scikit-learn==0.20.3 161 | scipy==1.2.1 162 | seaborn==0.9.0 163 | SecretStorage==3.1.1 164 | Send2Trash==1.5.0 165 | simplegeneric==0.8.1 166 | singledispatch==3.4.0.3 167 | six==1.12.0 168 | snowballstemmer==1.2.1 169 | sortedcollections==1.1.2 170 | sortedcontainers==2.1.0 171 | soupsieve==1.8 172 | Sphinx==1.8.5 173 | sphinxcontrib-websupport==1.1.0 174 | spyder==3.3.3 175 | spyder-kernels==0.4.2 176 | SQLAlchemy==1.3.1 177 | statsmodels==0.9.0 178 | sympy==1.3 179 | TA-Lib==0.4.24 180 | tables==3.5.1 181 | tblib==1.3.2 182 | terminado==0.8.1 183 | testpath==0.4.2 184 | toolz==0.9.0 185 | tornado==6.0.2 186 | tqdm==4.31.1 187 | traitlets==4.3.2 188 | unicodecsv==0.14.1 189 | urllib3==1.24.1 190 | wcwidth==0.1.7 191 | webencodings==0.5.1 192 | Werkzeug==0.14.1 193 | widgetsnbextension==3.4.2 194 | wrapt==1.11.1 195 | wurlitzer==1.0.2 196 | xlrd==1.2.0 197 | XlsxWriter==1.1.5 198 | xlwt==1.3.0 199 | zict==0.1.4 200 | zipp==0.3.3 --------------------------------------------------------------------------------