Merge "Dockerfile for Mixmatch"

This commit is contained in:
Zuul 2018-05-11 17:49:40 +00:00 committed by Gerrit Code Review
commit 59af61ff67
1 changed files with 13 additions and 16 deletions

View File

@ -1,18 +1,15 @@
# Usage example: # Build:
# sudo docker build -t mixmatch .
# docker build -t mixmatch . # Run the container:
# sudo docker run -t
# sudo docker run \ # --volume /<path>/<to>/<local>/mixmatch.conf:/etc/mixmatch/mixmatch.conf:ro
# --interactive --tty \ # --publish 9913:9913 mixmatch
# --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
FROM python:3
RUN pip install uwsgi RUN pip install uwsgi
WORKDIR /usr/app/src/mixmatch
EXPOSE 5001 COPY . /usr/app/src/mixmatch
CMD ["bash", "/usr/src/app/run_proxy.sh"] 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