alpinelinux / docker-alpine

Official Alpine Linux Docker image. Win at minimalism!
MIT License
1.04k stars 261 forks source link

Problem to install cron or dcron lib in Ruby and Alpine #309

Open caiohenrique12 opened 1 year ago

caiohenrique12 commented 1 year ago

Hi folks, I'm tried to install a cron/dcron lib in my docker image:

Dockerfile

FROM ruby:2.5.5-alpine

WORKDIR /app

RUN apk --update add --no-cache --virtual run-dependencies \ 
  cron

COPY Gemfile /app/Gemfile

COPY Gemfile.lock /app/Gemfile.lock

RUN bundle install

COPY . .

I got this error during build:

image

If I tried to use dcron, I got the same error.

Thankful for your help!