Skip to content

Commit

Permalink
adjustments to container
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejgray committed Dec 22, 2023
1 parent c83c332 commit 5d44f6b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,11 @@ EXPOSE 8000
# Set the ARG value as an environment variable
ENV EXTRAS=${EXTRAS}

# Create a non-root user and change ownership of necessary directories
RUN groupadd -r neon && useradd -r -g neon neon \
&& chown -R neon:neon /neon_iris /usr/local/bin

# Use the non-root user to run the container
USER neon

ENTRYPOINT ["/neon_iris/entrypoint.sh"]
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ accepts special configuration items prefixed with `webui_` to customize the UI.
| webui_input_placeholder | The placeholder text for the input box | Ask me something |
| webui_ws_url | The websocket URL to connect to, which must be accessible from the browser you're running in. Note that the default will usually fail. | ws://localhost:8000/ws |

Example configuration:
Iris uses the `Configuration()` class from OVOS to handle configuration. This
means that you can specify configuration in a `neon.yaml` file in the
`~/.config/neon`. When using a container, you can mount a volume to
`/home/neon/.config/neon` to provide a configuration file.

Example configuration block:

```yaml
iris:
Expand Down

0 comments on commit 5d44f6b

Please sign in to comment.