diff --git a/Dockerfile b/Dockerfile
index 7ec6f4ba511a493be0d1494a2077a94c6db541f3..fc891ff9d892738feb7394e4e9c6ba7c37cdc8a0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,6 +10,11 @@ WORKDIR /sharkey
 
 RUN apk add git
 
+ENV PYTHONUNBUFFERED=1
+RUN apk add --update python3 && ln -sf python3 /usr/bin/python
+RUN python3 -m ensurepip
+RUN pip3 install --no-cache --upgrade pip setuptools
+
 COPY . ./
 
 RUN git submodule update --init --recursive