diff --git a/Dockerfile b/0.20.3/Dockerfile similarity index 100% rename from Dockerfile rename to 0.20.3/Dockerfile diff --git a/1.3.3/Dockerfile b/1.3.3/Dockerfile new file mode 100644 index 0000000..67ef067 --- /dev/null +++ b/1.3.3/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.9.7-slim + +WORKDIR /usr/src/app + +RUN pip install --no-cache-dir -v pandas==1.3.3 + +CMD [ "python" ] diff --git a/README.md b/README.md index 2e9359f..c40bf51 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,32 @@ # Docker container for Pandas -[pandas](http://pandas.pydata.org/) is an open source library providing data analysis tools for the Python programming language. This docker image contains pandas 0.20.3 and is build on top of the official python 3.6.3 slim image. +[pandas](http://pandas.pydata.org/) is an open source library providing data analysis tools for the Python programming language. This docker image contains pandas and is build on top of the official python slim image. * [GitHub Repository with Dockerbuild files](https://github.com/felixlohmeier/pandas-docker) * [Docker Hub with docker images](https://hub.docker.com/r/felixlohmeier/pandas/) -## fixed versions +## Available Tags -* Python 3.6.3 -* Pandas 0.20.3 +* 1.3.3: Pandas 1.3.3, Python 3.9.7 +* 0.20.3: Pandas 0.20.3, Python 3.6.3 -## usage +## Usage -### python console +### Python console -> docker run -it --rm felixlohmeier/pandas +> docker run -it --rm felixlohmeier/pandas:1.3.3 -### run a script +### Run a script -> docker run --rm -v "$PWD":/data:z -w /data felixlohmeier/pandas python my-script.py +> docker run --rm -v "$PWD":/data:z -w /data felixlohmeier/pandas:1.3.3 python my-script.py + +## Development + +``` +cd 1.3.3 +docker build -t felixlohmeier/pandas:1.3.3 . +docker login --username felixlohmeier --password X docker.io +docker push felixlohmeier/pandas:1.3.3 +``` + +Manually update README in [Docker Hub Repo](https://hub.docker.com/repository/docker/felixlohmeier/pandas)