We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 759ab2f commit 5e98e5fCopy full SHA for 5e98e5f
1 file changed
template/ruby-http/Dockerfile
@@ -1,13 +1,13 @@
1
FROM openfaas/of-watchdog:0.5.3 as watchdog
2
3
-FROM ruby:2.4-alpine3.8
+FROM ruby:2.6.3-slim-stretch
4
5
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
6
RUN chmod +x /usr/bin/fwatchdog
7
8
ARG ADDITIONAL_PACKAGE
9
-
10
-RUN apk --no-cache add ${ADDITIONAL_PACKAGE}
+RUN apt-get update \
+ && apt-get install -qy --no-install-recommends ${ADDITIONAL_PACKAGE}
11
12
WORKDIR /home/app
13
@@ -22,8 +22,9 @@ WORKDIR /home/app/function
22
23
RUN bundle install
24
25
-RUN addgroup -S app \
26
- && adduser app -S -G app
+# Create a non-root user
+RUN addgroup --system app \
27
+ && adduser --system --ingroup app app
28
29
RUN chown app:app -R /home/app
30
@@ -40,4 +41,3 @@ ENV upstream_url="http://127.0.0.1:5000"
40
41
ENV mode="http"
42
43
CMD ["fwatchdog"]
0 commit comments