Dockerfile Improvements
- Adjusted port to 9511 to allow external access to the service. - Added instructions. Change-Id: Ibe337ee26d52d5a47f1d7dde8bf38da4501ad9a9
This commit is contained in:
parent
d7e4bbeaaa
commit
e995a4d65d
11
Dockerfile
11
Dockerfile
|
@ -15,6 +15,13 @@
|
|||
# Based on Ubuntu
|
||||
############################################################
|
||||
|
||||
############################################################
|
||||
# Usage:
|
||||
# 1060 docker build -t magnum:latest .
|
||||
# docker run --name magnum -p 127.0.0.1:9511:9511 -d magnum:latest /bin/sh -c magnum-api --debug --host=0.0.0.0
|
||||
# curl http://127.0.0.1:9511/
|
||||
############################################################
|
||||
|
||||
# Set the base image to Ubuntu
|
||||
FROM ubuntu
|
||||
|
||||
|
@ -37,7 +44,7 @@ ADD . /magnum
|
|||
RUN pip install -r /magnum/requirements.txt
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 5911
|
||||
EXPOSE 9511
|
||||
|
||||
# Set the default directory where CMD will execute
|
||||
WORKDIR /magnum
|
||||
|
@ -47,4 +54,4 @@ RUN python setup.py install
|
|||
|
||||
# Set the default command to execute
|
||||
# when creating a new container
|
||||
CMD magnum-api --debug
|
||||
CMD magnum-api --debug --host=0.0.0.0
|
||||
|
|
Loading…
Reference in New Issue