diff --git a/src/kmc/Dockerfile b/src/kmc/Dockerfile
index 1202c9a924c814ee3582aefed74232c0dd563872..f651653e280daf93720ce85b4509ebc7d0ac0eaa 100644
--- a/src/kmc/Dockerfile
+++ b/src/kmc/Dockerfile
@@ -1,6 +1,6 @@
 FROM alpine:3.17 AS build
 
-RUN apk add --no-cache git musl-dev pkgconfig openssl-dev zlib-ng cmake gcc make g++ zlib-dev py3-pybind11-dev \
+RUN apk add --no-cache git musl-dev pkgconfig openssl-dev zlib-ng cmake gcc make g++ zlib-dev py3-pybind11-dev python3-dev \
   && git clone --recurse-submodules https://github.com/refresh-bio/kmc.git \
   && cd kmc \
   && make