From bd27dd9da92b8d369a1ba1025efb7a826ead1415 Mon Sep 17 00:00:00 2001 From: Lohith Date: Thu, 29 Mar 2018 13:50:36 -0400 Subject: [PATCH] Dockerfile for Mixmatch Change-Id: I647039a0c0471f8d5e644274e948c5e037dc3945 --- Dockerfile | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index f84c26c..7e15cbd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,15 @@ -# Usage example: - -# docker build -t mixmatch . - -# sudo docker run \ -# --interactive --tty \ -# --volume /etc/mixmatch/mixmatch.conf:/etc/mixmatch/mixmatch.conf \ -# --publish 5001:5001 mixmatch - -# Make sure that all localhost/127.0.0.1 references in the config are replaced -# with the IP of the idp and that it is configured correctly otherwise - -FROM python:3-onbuild +# Build: +# sudo docker build -t mixmatch . +# Run the container: +# sudo docker run -t +# --volume ////mixmatch.conf:/etc/mixmatch/mixmatch.conf:ro +# --publish 9913:9913 mixmatch +FROM python:3 RUN pip install uwsgi - -EXPOSE 5001 -CMD ["bash", "/usr/src/app/run_proxy.sh"] +WORKDIR /usr/app/src/mixmatch +COPY . /usr/app/src/mixmatch +RUN pip install -r /usr/app/src/mixmatch/requirements.txt +RUN pip install /usr/app/src/mixmatch +EXPOSE 9913 +CMD /usr/local/bin/uwsgi --ini /usr/app/src/mixmatch/httpd/mixmatch-uwsgi.ini