Skip to content

Commit

Permalink
Switch to use debian base image
Browse files Browse the repository at this point in the history
  • Loading branch information
lwrubel committed Jun 3, 2024
1 parent f13d53f commit 036d735
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 6 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
FROM ruby:3.2.2-alpine
FROM ruby:3.3.2-bookworm

# postgresql-client is required for invoke.sh
RUN apk --no-cache add \
postgresql-dev \
postgresql-client \
tzdata \
libxml2-dev \
libxslt-dev
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
postgresql-client postgresql-contrib libpq-dev build-essential \
libxml2-dev libxslt-dev

LABEL maintainer="Aaron Collier <aaron.collier@stanford.edu>"

Expand All @@ -25,10 +22,7 @@ RUN gem update --system && \

COPY Gemfile Gemfile.lock ./

RUN apk --no-cache add --virtual build-dependencies \
build-base \
&& bundle install --without test\
&& apk del build-dependencies
RUN bundle install

COPY . .

Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ GEM
net-http
faraday-retry (2.2.1)
faraday (~> 2.0)
ffi (1.17.0-aarch64-linux-gnu)
ffi (1.17.0-aarch64-linux-musl)
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x86_64-darwin)
Expand Down Expand Up @@ -454,6 +455,7 @@ GEM
zeitwerk (2.6.15)

PLATFORMS
aarch64-linux
aarch64-linux-musl
arm64-darwin-23
x86_64-darwin-19
Expand Down

0 comments on commit 036d735

Please sign in to comment.