fix: Broken Docker Builds (#2755)

Co-authored-by: Pascal Jufer <paescuj@users.noreply.github.com>
This commit is contained in:
Sojan Jose 2021-08-06 01:21:44 +05:30 committed by GitHub
parent f477c5281f
commit f934a5eb04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

2
.nvmrc
View file

@ -1 +1 @@
16.1.0
14.17.4

View file

@ -83,9 +83,8 @@ COPY --from=pre-builder /gems/ /gems/
COPY --from=pre-builder /app /app
# Remove unnecessary files
RUN rm -rf /gems/ruby/3.0.2/cache/*.gem \
&& find /gems/ruby/3.0.2/gems/ -name "*.c" -delete \
&& find /gems/ruby/3.0.2/gems/ -name "*.o" -delete
RUN rm -rf /gems/ruby/3.0.0/cache/*.gem \
&& find /gems/ruby/3.0.0/gems/ \( -name "*.c" -o -name "*.o" \) -delete
# creating a log directory so that image wont fail when RAILS_LOG_TO_STDOUT is false
# https://github.com/chatwoot/chatwoot/issues/701