M .gitmodules => .gitmodules +3 -0
@@ 7,3 7,6 @@
[submodule "tailon/src"]
path = tailon/src
url = https://github.com/gvalkov/tailon.git
+[submodule "uwsgi/src"]
+ path = uwsgi/src
+ url = https://github.com/unbit/uwsgi.git
M uwsgi/Dockerfile => uwsgi/Dockerfile +5 -8
@@ 1,16 1,13 @@
-FROM alpine:edge AS builder
+FROM alpine:edge
-RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ pypy musl-dev linux-headers gcc
+RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ pypy musl-dev pcre-dev linux-headers gcc
RUN pypy -m ensurepip
RUN pypy -m pip install --upgrade --no-warn-script-location pip wheel
-RUN pypy -m pip install --no-warn-script-location uwsgi
-
-FROM alpine:edge
-RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ pypy
-COPY --from=builder /usr/lib/pypy /usr/lib/pypy
+COPY src /var/uwsgi
+RUN pypy -m pip install /var/uwsgi
-# user `uwsgi` should be created with PID=100:GID=101
+#Note: user `uwsgi` should be created with PID=100:GID=101
RUN addgroup -S uwsgi
RUN adduser -SD -h /var/www -s /sbin/nologin -G uwsgi -g uwsgi uwsgi
A uwsgi/src => uwsgi/src +1 -0
@@ 0,0 1,1 @@
+Subproject commit 89cb161cda959697a4afe013f348b06646b960aa