Skip to content

Commit d3d056c

Browse files
committed
Initialized repo
0 parents  commit d3d056c

File tree

5 files changed

+107
-0
lines changed

5 files changed

+107
-0
lines changed

.dockerignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# add git-ignore syntax here of things you don't want copied into docker image
2+
3+
.git
4+
.travis.yml
5+
*Dockerfile*
6+
README.md
7+
LICENSE.txt

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
- docker
3+
4+
script:
5+
- docker ps
6+
- docker run -dit faizanbashir/python:2.7 sh

Dockerfile

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
FROM alpine:3.8
2+
3+
LABEL MAINTAINER="Faizan Bashir <[email protected]>"
4+
5+
# Linking of locale.h as xlocale.h
6+
# This is done to ensure successfull install of python numpy package
7+
# see https://forum.alpinelinux.org/comment/690#comment-690 for more information.
8+
9+
WORKDIR /var/www/
10+
11+
# SOFTWARE PACKAGES
12+
# * musl: standard C library
13+
# * lib6-compat: compatibility libraries for glibc
14+
# * linux-headers: commonly needed, and an unusual package name from Alpine.
15+
# * build-base: used so we include the basic development packages (gcc)
16+
# * bash: so we can access /bin/bash
17+
# * git: to ease up clones of repos
18+
# * ca-certificates: for SSL verification during Pip and easy_install
19+
# * freetype: library used to render text onto bitmaps, and provides support font-related operations
20+
# * libgfortran: contains a Fortran shared library, needed to run Fortran
21+
# * libgcc: contains shared code that would be inefficient to duplicate every time as well as auxiliary helper routines and runtime support
22+
# * libstdc++: The GNU Standard C++ Library. This package contains an additional runtime library for C++ programs built with the GNU compiler
23+
# * openblas: open source implementation of the BLAS(Basic Linear Algebra Subprograms) API with many hand-crafted optimizations for specific processor types
24+
# * tcl: scripting language
25+
# * tk: GUI toolkit for the Tcl scripting language
26+
# * libssl1.0: SSL shared libraries
27+
ENV PACKAGES="\
28+
dumb-init \
29+
musl \
30+
libc6-compat \
31+
linux-headers \
32+
build-base \
33+
bash \
34+
git \
35+
ca-certificates \
36+
freetype \
37+
libgfortran \
38+
libgcc \
39+
libstdc++ \
40+
openblas \
41+
tcl \
42+
tk \
43+
libssl1.0 \
44+
"
45+
46+
# PYTHON DATA SCIENCE PACKAGES
47+
# * numpy: support for large, multi-dimensional arrays and matrices
48+
# * matplotlib: plotting library for Python and its numerical mathematics extension NumPy.
49+
# * scipy: library used for scientific computing and technical computing
50+
# * scikit-learn: machine learning library integrates with NumPy and SciPy
51+
# * pandas: library providing high-performance, easy-to-use data structures and data analysis tools
52+
# * nltk: suite of libraries and programs for symbolic and statistical natural language processing for English
53+
ENV PYTHON_PACKAGES="\
54+
numpy \
55+
matplotlib \
56+
scipy \
57+
scikit-learn \
58+
pandas \
59+
nltk \
60+
"
61+
62+
RUN apk add --no-cache --virtual build-dependencies python --update py-pip \
63+
&& apk add --virtual build-runtime \
64+
build-base python-dev openblas-dev freetype-dev pkgconfig gfortran \
65+
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
66+
&& pip install --upgrade pip \
67+
&& pip install --no-cache-dir $PYTHON_PACKAGES \
68+
&& apk del build-runtime \
69+
&& apk add --no-cache --virtual build-dependencies $PACKAGES \
70+
&& rm -rf /var/cache/apk/*
71+
72+
CMD ["python"]

LICENSE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 <Faizan Bashir>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Docker image for Python Datascience containers

0 commit comments

Comments
 (0)