Skip to content

Commit 520ebe8

Browse files
committed
Reset tmp dir in docker build, fix permissions
1 parent ce075ba commit 520ebe8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ RUN bundle config set --local deployment 'true' \
3434
&& bundle install \
3535
&& bundle clean
3636

37-
RUN rm -rf vendor/cache/ .git
37+
RUN rm -rf vendor/cache/ .git tmp
3838

3939
# build frontend
4040
RUN yarn global add [email protected]
@@ -46,6 +46,8 @@ RUN apt-get autoremove -y
4646

4747
RUN adduser --disabled-password --uid 1001 --gid 0 --gecos "" app
4848

49+
RUN mkdir /app-src/tmp && chown -R 1001 /app-src/tmp
50+
4951
USER 1001
5052

5153
# make sure unique secret key is set by operator

0 commit comments

Comments
 (0)