Skip to content

Commit 098d05a

Browse files
authored
chore(Dockerfile): consolidate a few chmod and chown into one layer (#54)
1 parent d87b04e commit 098d05a

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

rootfs/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RUN mkdir /app
44
RUN addgroup --quiet --gid 2000 slug && \
55
useradd slug --uid=2000 --gid=2000 --home-dir /app --no-create-home \
66
--shell /bin/bash
7-
RUN chown slug:slug /app
7+
88
WORKDIR /app
99

1010
# add default port to expose (can be overridden)
@@ -14,10 +14,11 @@ EXPOSE 5000
1414
ADD ./runner /runner
1515
ADD ./bin /bin
1616
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
17+
RUN chmod +x /bin/objstorage && \
18+
chown slug:slug /app \
19+
/runner/init \
20+
/bin/get_object \
21+
/bin/objstorage
2122

2223
USER slug
2324
ENV HOME /app

0 commit comments

Comments
 (0)