Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to alpine linux #416

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all 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
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