We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5279d8 commit 360fb5dCopy full SHA for 360fb5d
2 files changed
Dockerfile
@@ -0,0 +1,11 @@
1
+FROM python:3.7.3-slim-stretch
2
+
3
+RUN pip install pip==19.1 pre-commit==1.15.2
4
5
+ENV POETRY_VERSION=0.12.14
6
+RUN apt update && apt install -y curl
7
+RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
8
9
+ENV PATH="/root/.poetry/bin:${PATH}"
10
11
+CMD ["python3"]
README.md
@@ -0,0 +1,24 @@
+# docker-python
+Add poetry, pre-commit, and other dev-tools to official Python slim stretch
+Docker image.
+## Usage
+```
+FROM playpauseandstop/docker-python
12
+## Development
13
14
+To build an image:
15
16
+```bash
17
+docker build -t playpauseandstop/docker-python .
18
19
20
+To run something, using given image:
21
22
23
+docker run --rm -it playpauseandstop/docker-python <cmd>
24
0 commit comments