Skip to content
Snippets Groups Projects
Unverified Commit dd561686 authored by Andrea Franchini's avatar Andrea Franchini
Browse files

dockerfile port update

parent a6d09a01
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ RUN pip install --upgrade pip \
&& pip install -r /opt/mc_openapi/requirements.txt
WORKDIR /opt/mc_openapi
ENV UVICORN_PORT=80 \
ENV UVICORN_PORT=8080 \
UVICORN_HOST=0.0.0.0
CMD ["uvicorn", "--interface", "wsgi", "mc_openapi.app_config:app"]
......@@ -57,9 +57,9 @@ And then run it with
```sh
docker run -d wp4/dmc
```
The Uvicorn server will be running and listening on port 80 of the container.
The Uvicorn server will be running and listening on port `8080` of the container.
To use it locally, you may bind it with port `8080` of `localhost`
by adding `-p 127.0.0.1:8080:80/tcp` to the `docker run` command.
by adding `-p 127.0.0.1:8080:8080/tcp` to the `docker run` command.
## Building the Documentation
......
......@@ -62,7 +62,7 @@ def infer_domlx_version(raw_model: bytes) -> DOMLVersion:
else:
return DOMLVersion.V2_0 # Should be DOMLVersion.V1_0, but we use V2_0 because the 2.1 IDE doesn't fill it
else:
raise RuntimeError(f"Supplied with malformed DOMLX model or unsupported DOML version.\nIn use version is: {DOMLVersion.V2_1}")
raise RuntimeError(f"Supplied with malformed DOMLX model or unsupported DOML version.\nIn use version is: {DOMLVersion.V2_0}")
def parse_doml_model(raw_model: bytes, doml_version: Optional[DOMLVersion]) -> Tuple[IntermediateModel, DOMLVersion]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment