Skip to content

Commit ec0a0a1

Browse files
committed
added deployment docs for Docker
1 parent 872771e commit ec0a0a1

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

docs/src/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Welcome to Piccolo's documentation!
1616
piccolo/asgi/index
1717
piccolo/features/index
1818
piccolo/playground/index
19+
piccolo/deployment/index
1920
piccolo/ecosystem/index
2021
piccolo/contributing/index
2122
piccolo/changes/index
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Deployment
2+
==========
3+
4+
Docker
5+
------
6+
7+
Piccolo has several dependencies which are compiled (e.g. asyncpg, orjson),
8+
which is great for performance, but you may run into difficulties when using
9+
Alpine Linux as your base Docker image.
10+
11+
Alpine uses a different compiler toolchain to most Linux distros. It's
12+
highly recommended to use Debian as your base Docker image. Many Python packages
13+
have prebuilt versions for Debian, meaning you don't have to compile them at
14+
all during install. The result is a much faster build process, and potentially
15+
even a smaller overall Docker image size (the size of Alpine quickly balloons
16+
after you've added all of the compilation dependencies).

0 commit comments

Comments
 (0)