Skip to content

Commit 360fb5d

Browse files
feature: Initial Dockerfile to use.
1 parent b5279d8 commit 360fb5d

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# docker-python
2+
3+
Add poetry, pre-commit, and other dev-tools to official Python slim stretch
4+
Docker image.
5+
6+
## Usage
7+
8+
```
9+
FROM playpauseandstop/docker-python
10+
```
11+
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+
```bash
23+
docker run --rm -it playpauseandstop/docker-python <cmd>
24+
```

0 commit comments

Comments
 (0)