Skip to content

Commit 961dea9

Browse files
authored
Add ruby dev for pg gem (#3)
* Mods Dockerfile to use ruby 3.3.6 in the hopes this allows us to use ruby-dev, required by 'pg' gem. * Add a few apk packages so that this image can work for any ruby apps that need the pg gem
1 parent 5e25d22 commit 961dea9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# About APK: https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper
22
# Packages are here: https://pkgs.alpinelinux.org/packages
33

4-
FROM alpine:3.20
4+
FROM alpine:3.21
55

66
# Install Ruby and necessary dependencies:
77
# irb wouldn't run because rdoc was missing
88

9-
RUN apk add --clean ruby=3.3.3-r0 \
10-
vim && \
9+
RUN apk add --clean ruby \
10+
vim \
11+
ruby-dev \
12+
build-base \
13+
postgresql-dev && \
1114
gem install rdoc && \
1215
gem install bundler
1316

0 commit comments

Comments
 (0)