Skip to content

Commit

Permalink
Merge pull request #209 from RasaHQ/erohmensing-patch-1-1
Browse files Browse the repository at this point in the history
update docker instructions with permissions
  • Loading branch information
erohmensing authored May 11, 2020
2 parents 0afe5a8 + bab7cdb commit 9c0433e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Detailed instructions can be found in the Rasa Documentation about
### Usage

In order to start an action server using implemented custom actions,
you can use the available Docker image `rasa/rasa-sdk:latest`.
you can use the available Docker image `rasa/rasa-sdk`.

Before starting the action server ensure that the folder containing
your actions is handled as Python module and therefore has to contain
Expand All @@ -51,7 +51,7 @@ Then start the action server using:

```bash
docker run -p 5055:5055 --mount type=bind,source=<ABSOLUTE_PATH_TO_YOUR_ACTIONS>,target=/app/actions \
rasa/rasa-sdk:latest
rasa/rasa-sdk:<version>
```

The action server is then available at `http://localhost:5055/webhook`.
Expand All @@ -61,7 +61,11 @@ The action server is then available at `http://localhost:5055/webhook`.
To add custom dependencies you enhance the given Docker image, e.g.:

```
FROM rasa/rasa-sdk:latest
# Extend the official Rasa SDK image
FROM rasa/rasa-sdk:<version>
# Change back to root user to install dependencies
USER root
# To install system dependencies
RUN apt-get update -qq && \
Expand All @@ -71,6 +75,9 @@ RUN apt-get update -qq && \
# To install packages from PyPI
RUN pip install --no-cache-dir <A_REQUIRED_PACKAGE_ON_PYPI>
# Switch back to non-root to run code
USER 1001
```


Expand Down

0 comments on commit 9c0433e

Please sign in to comment.