Skip to content

Commit

Permalink
fix: JS RunTime
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarMWarraich committed Jul 25, 2024
1 parent 831b274 commit f987a81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@
/config/master.key

/config/credentials/development.key
node_modules
node_modules
.ror-env
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FROM base as build

# Install packages needed to build gems and node modules
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential curl git libpq-dev libvips node-gyp pkg-config python-is-python3
apt-get install --no-install-recommends -y build-essential curl git libpq-dev libvips node-gyp pkg-config python-is-python3 nodejs

# Install JavaScript dependencies
ARG NODE_VERSION=20.11.1
Expand Down Expand Up @@ -54,7 +54,7 @@ RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
FROM base

RUN apt-get update -qq && \
apt-get install --no-install-recommends -y curl libvips postgresql-client && \
apt-get install --no-install-recommends -y curl libvips postgresql-client nodejs && \
rm -rf /var/lib/apt/lists /var/cache/apt/archives

# Copy built artifacts: gems, application
Expand Down

0 comments on commit f987a81

Please sign in to comment.