forked from Dju999/data_analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 1.11 KB
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 1.11 KB
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
FROM ubuntu:18.04
# сборка контейнера: docker build -t ds_docker:latest .
# запуск
# сборка pipenv: docker run --volume $(pwd)/app:/www/app -it --rm ds_docker:latest pipenv
# подключение в sh: docker run --volume $(pwd)/app:/www/app -it --rm ds_docker:latest bash
# запуск Jupyter: docker run --volume $(pwd)/app:/www/app -p 8889:8888 -it --rm ds_docker:latest jupyter
# установка openpyxl: pipenv install hg+https://bitbucket.org/openpyxl/openpyxl@2.5#egg=openpyxl
RUN apt-get update && apt-get install -y curl python3-pip libatlas-base-dev libhdf5-dev python3.6 python3.6-dev \
libpcre3-dev mercurial
RUN update-alternatives --install /usr/bin/python3 python3.6 /usr/bin/python3.6 0 && pip3 install pipenv
ENV PYTHONPATH=/www/app
ENV PIPENV_VENV_IN_PROJECT=1
ENV PIPENV_CACHE_DIR=/www/app/.cache/pipenv
ENV PIP_CACHE_DIR=/www/app/.cache/pip
ENV PIP_NO_BINARY=numpy
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
WORKDIR /www/app
ENTRYPOINT ["docker-entrypoint.sh"]