Skip to content

replace ENTRYPOINT with CMD; EXPOSE port; + apt-get clean #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ RUN apt-get update && \
libffi-dev \
libssl-dev \
xmlsec1 \
libyaml-dev
libyaml-dev && \
apt-get clean

RUN mkdir -p /src/satosa
COPY . /src/satosa
COPY docker/setup.sh /setup.sh
RUN /setup.sh

COPY docker/start.sh /start.sh
RUN chmod +x /setup.sh /start.sh \
&& /setup.sh

COPY docker/attributemaps /opt/satosa/attributemaps

VOLUME /opt/satosa/etc
ENTRYPOINT ["/start.sh"]
CMD ["/start.sh"]
ARG PROXY_PORT=8000
EXPOSE $PROXY_PORT
12 changes: 12 additions & 0 deletions scripts/start_proxy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import re
import sys

from gunicorn.app.wsgiapp import run

print('\n'.join(sys.path))
# use this entrypoint to start the proxy from the IDE

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())