Dockerfile for Mixmatch
Change-Id: I647039a0c0471f8d5e644274e948c5e037dc3945
This commit is contained in:
parent
167482401e
commit
bd27dd9da9
29
Dockerfile
29
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 /<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
|
||||
|
Loading…
Reference in New Issue
Block a user