Skip to content

Commit

Permalink
install a JS runtime to build the Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Aug 30, 2024
1 parent b014969 commit 8c7b509
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ COPY . .
# Precompile bootsnap code for faster boot times
RUN bundle exec bootsnap precompile app/ lib/

# Install packaged need to build JS libs
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y nodejs \
npm
RUN npm install -g [email protected]

# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile

Expand Down

0 comments on commit 8c7b509

Please sign in to comment.