Install nodejs to povide a javascript runtime environment
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 11m33s
Build docker image / build-static-assets (pull_request) Successful in 58m44s

This commit is contained in:
Manuel Bustillo 2024-08-11 23:08:10 +02:00
parent 6b3bea9985
commit 44274fddca

View File

@ -1,7 +1,7 @@
# syntax = docker/dockerfile:1
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.2.0
ARG RUBY_VERSION=3.3.4
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
# Rails app lives here
@ -13,6 +13,7 @@ ENV RAILS_ENV="production" \
BUNDLE_PATH="/usr/local/bundle" \
BUNDLE_WITHOUT="development"
RUN apt-get update && apt-get install -y nodejs
# Throw-away build stage to reduce size of final image
FROM base as build