Add mandatory `dapr init` step to Self-Hosted Mode in Container Docs (#2303)

I followed the docs to ship Dapr together with an app inside the same container and came across the issue that `daprd` in the `ENTRYPOINT` was not available until i initialized dapr in slim mode.

Signed-off-by: Robin-Manuel Thiel <robin-manuel@thiel1.de>

Co-authored-by: Mark Fussell <markfussell@gmail.com>
This commit is contained in:
Robin-Manuel Thiel 2022-03-30 23:17:26 +02:00 committed by GitHub
parent d11caff869
commit 0dcbbf3be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -67,6 +67,7 @@ RUN wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh
ARG DAPR_BUILD_DIR
COPY $DAPR_BUILD_DIR /opt/dapr
ENV PATH="/opt/dapr/:${PATH}"
RUN dapr init --slim
# Install your app
WORKDIR /app
@ -176,4 +177,4 @@ There are published Docker images for each of the Dapr components available on [
- `latest-arm`: The latest release version for ARM, **ONLY** use for development purposes.
- `edge-arm`: The latest edge build for ARM (master).
- `major.minor.patch-arm`: A release version for ARM.
- `major.minor.patch-rc.iteration-arm`: A release candidate for ARM.
- `major.minor.patch-rc.iteration-arm`: A release candidate for ARM.