Browse Source

Merge "Dockerfile for Mixmatch"

Zuul 11 months ago
parent
commit
59af61ff67
1 changed files with 14 additions and 17 deletions
  1. 14
    17
      Dockerfile

+ 14
- 17
Dockerfile View File

@@ -1,18 +1,15 @@
1
-# Usage example:
2
-
3
-# docker build -t mixmatch .
4
-
5
-# sudo docker run \
6
-# --interactive --tty \
7
-# --volume /etc/mixmatch/mixmatch.conf:/etc/mixmatch/mixmatch.conf \
8
-# --publish 5001:5001 mixmatch
9
-
10
-# Make sure that all localhost/127.0.0.1 references in the config are replaced
11
-# with the IP of the idp and that it is configured correctly otherwise
12
-
13
-FROM python:3-onbuild
14
-
1
+# Build:
2
+#    sudo docker build -t mixmatch .
3
+# Run the container:
4
+#   sudo docker run -t
5
+#    --volume /<path>/<to>/<local>/mixmatch.conf:/etc/mixmatch/mixmatch.conf:ro
6
+#    --publish 9913:9913 mixmatch
7
+
8
+FROM python:3
15 9
 RUN pip install uwsgi
16
-
17
-EXPOSE 5001
18
-CMD ["bash", "/usr/src/app/run_proxy.sh"]
10
+WORKDIR /usr/app/src/mixmatch
11
+COPY . /usr/app/src/mixmatch
12
+RUN pip install -r /usr/app/src/mixmatch/requirements.txt
13
+RUN pip install /usr/app/src/mixmatch
14
+EXPOSE 9913
15
+CMD /usr/local/bin/uwsgi --ini /usr/app/src/mixmatch/httpd/mixmatch-uwsgi.ini

Loading…
Cancel
Save