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 && \
10
10
libffi-dev \
11
11
libssl-dev \
12
12
xmlsec1 \
13
- libyaml-dev
13
+ libyaml-dev && \
14
+ apt-get clean
14
15
15
16
RUN mkdir -p /src/satosa
16
17
COPY . /src/satosa
17
18
COPY docker/setup.sh /setup.sh
18
- RUN /setup.sh
19
-
20
19
COPY docker/start.sh /start.sh
20
+ RUN chmod +x /setup.sh /start.sh \
21
+ && /setup.sh
22
+
21
23
COPY docker/attributemaps /opt/satosa/attributemaps
22
24
23
25
VOLUME /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