From 12aa01133ee5536337b264b14c860753bb9bbd7c Mon Sep 17 00:00:00 2001 From: dittmar Date: Wed, 28 Feb 2024 21:55:03 +0100 Subject: [PATCH] Fix dockerfile for example and instruction how to start it --- README.md | 2 +- examples/dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7d67a15..e8b2f3b 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ The requirements file can use test releases when adding `--extra-index-url https cd /examples docker build . -t cadenza-analytics-example docker image list -docker run YOUR_CREATED_IMAGE_ID +docker run -p 8080:8080 YOUR_CREATED_IMAGE_ID ``` ### Technical notes The release process uses PyPi's [trusted publishing](https://docs.pypi.org/trusted-publishers/), so is based on diff --git a/examples/dockerfile b/examples/dockerfile index c65da90..1872176 100644 --- a/examples/dockerfile +++ b/examples/dockerfile @@ -9,4 +9,4 @@ WORKDIR /service RUN apt-get update && apt-get -y upgrade RUN pip install -r requirements.txt -CMD ["gunicorn", "-w", "4", "-b", ":8080", "--chdir", "extension", "example_extensions:analytics_service", "--access-logfile", "../logs/access.log"] +CMD ["gunicorn", "-w", "4", "-b", ":8080", "--chdir", "extension", "example_extensions:analytics_service()", "--access-logfile", "../logs/access.log"]