Dockerfile for Mixmatch

Change-Id: I647039a0c0471f8d5e644274e948c5e037dc3945
This commit is contained in:
Lohith 2018-03-29 13:50:36 -04:00
parent 167482401e
commit bd27dd9da9

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