File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,16 @@ ENV LIBRARY_PATH=/lib:/usr/lib
77
88WORKDIR ${HOME}
99
10- RUN apk add --update-cache build-base pango-dev cairo-dev libffi-dev libxml2-dev libxslt-dev jpeg-dev zlib-dev ttf-dejavu
10+ RUN apk add --update-cache build-base pango-dev cairo-dev libffi-dev libxml2-dev libxslt-dev jpeg-dev zlib-dev ttf-dejavu uwsgi uwsgi-python3
11+ RUN chown -R guest:users ${HOME}
12+
13+ USER guest
1114
1215COPY ./pod/requirements.txt ${HOME}/pod/
1316
14- RUN pip3 install -r ${HOME}/pod/requirements.txt
17+ RUN pip3 install --user - r ${HOME}/pod/requirements.txt
1518
19+ COPY ./uwsgi-config.ini ${HOME}/pod.ini
1620COPY ./pod/ ${HOME}/pod/
1721
18- CMD ["python3 " , "-m " , "pod" ]
22+ CMD ["sh " , "-c " , "uwsgi --ini ${HOME}/ pod.ini " ]
Original file line number Diff line number Diff line change 1+ [uwsgi]
2+ plugins =python3
3+ module =pod
4+ http-socket =:5000
5+ workers =4
6+ uid =guest
7+ gid =users
8+ pythonpath =/app/pod
9+ wsgi-disable-file-wrapper =true
You can’t perform that action at this time.
0 commit comments