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:
# 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 /<path>/<to>/<local>/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