-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nonroot user to quarto+shinylive
Signed-off-by: Peter Solymos <psolymos@gmail.com>
- Loading branch information
Showing
6 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
9 changes: 7 additions & 2 deletions
9
quarto-py-shinylive/Dockerfile.of → quarto-py-shinylive/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
FROM ghcr.io/openfaas/of-watchdog:0.10.1 AS watchdog | ||
|
||
FROM alpine:3.20 | ||
COPY app /app | ||
|
||
RUN adduser -D app | ||
USER app | ||
WORKDIR /home/app | ||
COPY app . | ||
|
||
COPY --from=watchdog /fwatchdog . | ||
ENV mode="static" | ||
ENV static_path="/app" | ||
ENV static_path="/home/app" | ||
HEALTHCHECK --interval=3s CMD [ -e /tmp/.lock ] || exit 1 | ||
CMD ["./fwatchdog"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
quarto-r-shinylive/Dockerfile.of → quarto-r-shinylive/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
FROM ghcr.io/openfaas/of-watchdog:0.10.1 AS watchdog | ||
|
||
FROM alpine:3.20 | ||
COPY app /app | ||
|
||
RUN adduser -D app | ||
USER app | ||
WORKDIR /home/app | ||
COPY app . | ||
|
||
COPY --from=watchdog /fwatchdog . | ||
ENV mode="static" | ||
ENV static_path="/app" | ||
ENV static_path="/home/app" | ||
HEALTHCHECK --interval=3s CMD [ -e /tmp/.lock ] || exit 1 | ||
CMD ["./fwatchdog"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters