Skip to content

Commit

Permalink
Switch to alpine linux
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Waffen <[email protected]>
  • Loading branch information
rwaffen committed Sep 26, 2024
1 parent 86a4d3d commit d551a7d
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
FROM ruby:3.3.5-slim-bookworm
FROM ruby:3.3.5-alpine3.20

RUN apt update && apt install -y \
g++ \
gcc \
make \
libstdc++-12-dev \
libffi-dev \
libc-dev \
libxml2-dev \
libxslt-dev \
libgcrypt-dev \
libsqlite3-dev \
sqlite3 \
# not needed for gems, but for runtime
git \
tzdata \
&& rm -rf /var/lib/apt/lists/*
RUN apk update \
&& apk upgrade \
&& apk add --no-cache --update \
git \
sqlite \
alpine-sdk \
libxml2-dev \
libxslt-dev \
tzdata \
bash \
gcompat

ENV APP_HOME /hdm
ENV RAILS_ENV production
Expand Down

0 comments on commit d551a7d

Please sign in to comment.