Skip to content

Commit

Permalink
chore(cve): upgrade debian to fix some CVEs (#2937)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdenquin authored Dec 10, 2024
1 parent 14fcc86 commit d8a3d50
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ FROM ruby:3.3.4-slim AS build

WORKDIR /app

RUN apt update -qq && apt install nodejs curl build-essential git pkg-config libpq-dev libclang-dev curl -y && \
curl https://sh.rustup.rs -sSf | bash -s -- -y
RUN apt update && apt upgrade -y
RUN apt install nodejs curl build-essential git pkg-config libpq-dev libclang-dev curl -y && \
curl https://sh.rustup.rs -sSf | bash -s -- -y

COPY ./Gemfile /app/Gemfile
COPY ./Gemfile.lock /app/Gemfile.lock
Expand All @@ -13,7 +14,7 @@ ENV PATH="$PATH:/root/.cargo/bin/"
RUN gem install bundler --no-document -v '2.5.5'

RUN bundle config build.nokogiri --use-system-libraries &&\
bundle install --jobs=3 --retry=3 --without development test
bundle install --jobs=3 --retry=3 --without development test

FROM ruby:3.3.4-slim

Expand All @@ -25,7 +26,8 @@ ARG SEGMENT_WRITE_KEY
ARG GOCARDLESS_CLIENT_ID
ARG GOCARDLESS_CLIENT_SECRET

RUN apt update -qq && apt install git libpq-dev curl -y
RUN apt update && apt upgrade -y
RUN apt install git libpq-dev curl -y

ENV SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY
ENV GOCARDLESS_CLIENT_ID=$GOCARDLESS_CLIENT_ID
Expand Down

0 comments on commit d8a3d50

Please sign in to comment.