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 1
1
FROM openfaas/of-watchdog:0.5.3 as watchdog
2
2
3
- FROM ruby:2.4-alpine3.8
3
+ FROM ruby:2.6.3-slim-stretch
4
4
5
5
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
6
6
RUN chmod +x /usr/bin/fwatchdog
7
7
8
8
ARG 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}
11
11
12
12
WORKDIR /home/app
13
13
@@ -22,8 +22,9 @@ WORKDIR /home/app/function
22
22
23
23
RUN bundle install
24
24
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
27
28
28
29
RUN chown app:app -R /home/app
29
30
@@ -40,4 +41,3 @@ ENV upstream_url="http://127.0.0.1:5000"
40
41
ENV mode="http"
41
42
42
43
CMD ["fwatchdog" ]
43
-
You can’t perform that action at this time.
0 commit comments