Skip to content

Commit 10dd4da

Browse files
committed
improved README
1 parent 8c8ff5e commit 10dd4da

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ Main Changes:
2121

2222
I have simplified the `entrypoint.sh` such that `devpi-server` runs as the main process instead of a background process in the container.
2323
As such, there is no need to call special commands like `pgrep` to check if `devpi-server` is still alive.
24-
Without the need for `pgrep`, we can use `python:slim`(200+ MB) as the base image instead of usual `python:latest`(900+ GB), saving over 75% in space.
24+
Without the need for `pgrep`, we can use `python:slim` as the base image instead of usual `python:latest`.
25+
The final docker image size reduced from >1GB to 209MB, a space saving of about 80%.
2526

2627

2728
Building the image
@@ -32,11 +33,11 @@ On an internet connected computer, build the docker image using:
3233
docker build -t tpl2go/devpi:$(date '+%Y-%m-%d') .
3334
```
3435

35-
Starting the image
36+
Running the image
3637
------------------
37-
Within the container,`devpi` stores its packages and data within `/devpi`.
38-
We can use a bind mount from `<devpi-vol-path>` to provision this persistent storage space within container.
39-
Additionally, we need to map port 3141 from within the container to whatever `external-port` you want the container to serve.
38+
Within the container,`devpi-server` stores its packages and data within the root directory `/devpi`.
39+
We can use a bind mount from `<devpi-vol-path>` to `/devpi` to provision this directory as a persistent storage space within container.
40+
Additionally, we need to map port 3141 from within the container to whatever `<external-port>` you want the container to serve.
4041

4142
```bash
4243
docker run -d -p <external-port>:3141 -v <devpi-vol-path>:/devpi \

0 commit comments

Comments
 (0)