mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Non root user and fwatchdow standarization
AlpineFunction additional Dockerfiles Fix Coffe, node nonroot user and change workdir DnCore nonroot and updated to 2.1, new README Fix golang user and watchdog Java user and watchdog fix Watchdog and user for node image Fix python user and watchdog Fix R username and watchdog Captainsintent user and fwatchdog ChangeColorIntent change username, fwatchdog and directory CHelloWorld remove tmp, disabled lock, fwatchdog and user DockerHubStats user, fwatchdog and dependencies Change figlet to use base alpine image Improve figlet ARM Set base image GIF-Maker MarkDownRender change base image NodeInfo change base image PhantomJS user and fwatchdog Resize Image SentimentAnalysis user and watchdog WebhookStach change root image Replace user faas with app Upgrade alpine to latest version Revert vendor folders Upgrade alpine:3.9
This commit is contained in:
@ -1,11 +1,15 @@
|
||||
FROM openfaas/classic-watchdog:0.14.4 as watchdog
|
||||
|
||||
FROM v4tech/imagemagick
|
||||
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.13.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
ENV fprocess "convert - -resize 50% fd:1"
|
||||
|
||||
RUN addgroup -g 1000 -S app && adduser -u 1000 -S app -G app
|
||||
USER 1000
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD [ "/usr/bin/fwatchdog"]
|
||||
|
@ -1,14 +1,18 @@
|
||||
FROM arm32v6/alpine:3.8
|
||||
FROM openfaas/classic-watchdog:0.14.4 as watchdog
|
||||
|
||||
FROM arm32v6/alpine:3.10
|
||||
|
||||
RUN apk --no-cache add imagemagick
|
||||
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.13.0/fwatchdog-armhf > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
ENV fprocess "convert - -resize 50% fd:1"
|
||||
|
||||
RUN addgroup -g 1000 -S app && adduser -u 1000 -S app -G app
|
||||
USER 1000
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
HEALTHCHECK --interval=1s CMD [ -e /tmp/.lock ] || exit 1
|
||||
CMD [ "/usr/bin/fwatchdog"]
|
||||
CMD [ "/usr/bin/fwatchdog"]
|
Reference in New Issue
Block a user