File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed
Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,19 @@ RUN apt-get update && \
1010 libffi-dev \
1111 libssl-dev \
1212 xmlsec1 \
13- libyaml-dev
13+ libyaml-dev && \
14+ apt-get clean
1415
1516RUN mkdir -p /src/satosa
1617COPY . /src/satosa
1718COPY docker/setup.sh /setup.sh
18- RUN /setup.sh
19-
2019COPY docker/start.sh /start.sh
20+ RUN chmod +x /setup.sh /start.sh \
21+ && /setup.sh
22+
2123COPY docker/attributemaps /opt/satosa/attributemaps
2224
2325VOLUME /opt/satosa/etc
24- ENTRYPOINT ["/start.sh" ]
26+ CMD ["/start.sh" ]
27+ ARG PROXY_PORT=8000
28+ EXPOSE $PROXY_PORT
Original file line number Diff line number Diff line change 1+ import re
2+ import sys
3+
4+ from gunicorn .app .wsgiapp import run
5+
6+ print ('\n ' .join (sys .path ))
7+ # use this entrypoint to start the proxy from the IDE
8+
9+ if __name__ == '__main__' :
10+ sys .argv [0 ] = re .sub (r'(-script\.pyw?|\.exe)?$' , '' , sys .argv [0 ])
11+ sys .exit (run ())
12+
You can’t perform that action at this time.
0 commit comments