We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d87b04e commit 098d05aCopy full SHA for 098d05a
1 file changed
rootfs/Dockerfile
@@ -4,7 +4,7 @@ RUN mkdir /app
4
RUN addgroup --quiet --gid 2000 slug && \
5
useradd slug --uid=2000 --gid=2000 --home-dir /app --no-create-home \
6
--shell /bin/bash
7
-RUN chown slug:slug /app
+
8
WORKDIR /app
9
10
# add default port to expose (can be overridden)
@@ -14,10 +14,11 @@ EXPOSE 5000
14
ADD ./runner /runner
15
ADD ./bin /bin
16
ADD https://storage.googleapis.com/object-storage-cli/bb8e054/objstorage-bb8e054-linux-amd64 /bin/objstorage
17
-RUN chmod +x /bin/objstorage
18
-RUN chown slug:slug /runner/init
19
-RUN chown slug:slug /bin/get_object
20
-RUN chown slug:slug /bin/objstorage
+RUN chmod +x /bin/objstorage && \
+ chown slug:slug /app \
+ /runner/init \
+ /bin/get_object \
21
+ /bin/objstorage
22
23
USER slug
24
ENV HOME /app
0 commit comments