Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM ruby:3.4 AS development
ARG UNAME=app
ARG UID=1000
ARG GID=1000
ARG NODE_MAJOR=20
ARG NODE_MAJOR=24


RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends \
RUN apt update -yqq && apt install -yqq --no-install-recommends \
ca-certificates \
gnupg \
apt-transport-https \
Expand All @@ -15,7 +15,7 @@ RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends \
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends nodejs
RUN apt update -yqq && apt-get install -yqq --no-install-recommends nodejs

RUN gem install bundler
RUN npm install -g npm
Expand All @@ -26,21 +26,19 @@ RUN mkdir -p /gems && chown ${UID}:${GID} /gems

USER $UNAME

ENV BUNDLE_PATH=/gems
ENV BUNDLE_PATH /gems

WORKDIR /app

CMD ["bundle", "exec", "puma", "-b", "tcp://0.0.0.0:4567"]



FROM development AS production

ENV BUNDLE_WITHOUT=development:test
ENV BUNDLE_WITHOUT development:test

COPY --chown=${UID}:${GID} . /app

RUN bundle install
RUN bundle install

RUN npm install
RUN npm ci
RUN npm run build
26 changes: 14 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ GEM
diff-lcs (1.6.2)
docile (1.4.1)
dry-initializer (3.2.0)
faraday (2.14.0)
faraday (2.14.1)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-net_http (3.4.1)
net-http (>= 0.5.0)
faraday-net_http (3.4.2)
net-http (~> 0.5)
ffi (1.17.3-aarch64-linux-gnu)
ffi (1.17.3-x86_64-linux-gnu)
hashdiff (1.2.1)
io-console (0.8.2)
json (2.18.0)
json (2.18.1)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
listen (3.10.0)
Expand All @@ -42,12 +43,12 @@ GEM
multi_json (1.17.0)
mustermann (3.0.4)
ruby2_keywords (~> 0.0.1)
net-http (0.6.0)
uri
net-http (0.9.1)
uri (>= 0.11.1)
nio4r (2.7.5)
ostruct (0.6.3)
parallel (1.27.0)
parser (3.3.10.1)
parser (3.3.10.2)
ast (~> 2.4.1)
racc
prism (1.9.0)
Expand Down Expand Up @@ -95,15 +96,15 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.6)
rubocop (1.82.1)
rubocop (1.84.2)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.48.0, < 2.0)
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.49.0)
Expand Down Expand Up @@ -137,10 +138,10 @@ GEM
rack-protection (= 4.2.1)
sinatra (= 4.2.1)
tilt (~> 2.0)
standard (1.53.0)
standard (1.54.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.82.0)
rubocop (~> 1.84.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.8)
standard-custom (1.0.2)
Expand All @@ -153,7 +154,7 @@ GEM
unicode-display_width (3.2.0)
unicode-emoji (~> 4.1)
unicode-emoji (4.2.0)
uri (1.0.3)
uri (1.1.1)
webmock (3.26.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
Expand All @@ -172,6 +173,7 @@ GEM
yabeda (~> 0.5)

PLATFORMS
aarch64-linux
x86_64-linux

DEPENDENCIES
Expand Down
Loading
Loading