Skip to content

Commit 2d9dd79

Browse files
author
Jonas Hendrickx
authored
PAS-572 | Fix mailing on Passwordless Test API image (#716)
1 parent d2313df commit 2d9dd79

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Api.dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,15 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
4545

4646
# Use the default non-root user for the app.
4747
# This instruction must appear after all other instructions that require elevated access.
48+
RUN mkdir -p /app
49+
RUN chmod 777 /app
4850
USER $APP_UID
4951

5052
WORKDIR /opt/app/
5153
COPY --from=build /tmp/app/src/Api/bin/publish ./
5254

55+
ENV MAIL__FROM="[email protected]"
56+
ENV MAIL__PROVIDERS__0__NAME="file"
57+
ENV MAIL__PROVIDERS__0__PATH="/app/mail.md"
58+
5359
ENTRYPOINT ["./Passwordless.Api"]

0 commit comments

Comments
 (0)