File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 11FROM openfaas/of-watchdog:0.5.3 as watchdog
22
3- FROM ruby:2.4-alpine3.8
3+ FROM ruby:2.6.3-slim-stretch
44
55COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
66RUN chmod +x /usr/bin/fwatchdog
77
88ARG ADDITIONAL_PACKAGE
9-
10- RUN apk -- no-cache add ${ADDITIONAL_PACKAGE}
9+ RUN apt-get update \
10+ && apt-get install -qy -- no-install-recommends ${ADDITIONAL_PACKAGE}
1111
1212WORKDIR /home/app
1313
@@ -22,8 +22,9 @@ WORKDIR /home/app/function
2222
2323RUN bundle install
2424
25- RUN addgroup -S app \
26- && adduser app -S -G app
25+ # Create a non-root user
26+ RUN addgroup --system app \
27+ && adduser --system --ingroup app app
2728
2829RUN chown app:app -R /home/app
2930
@@ -40,4 +41,3 @@ ENV upstream_url="http://127.0.0.1:5000"
4041ENV mode="http"
4142
4243CMD ["fwatchdog" ]
43-
You can’t perform that action at this time.
0 commit comments