diff --git a/Dockerfile.rake b/Dockerfile.rake index c86fcb30..c60054d2 100644 --- a/Dockerfile.rake +++ b/Dockerfile.rake @@ -3,6 +3,9 @@ FROM public.ecr.aws/docker/library/ruby:2.7.7 # Throw errors if Gemfile has been modified since Gemfile.lock RUN bundle config --global frozen 1 +# Updating packages +RUN apt update && apt upgrade -yqq + # Set up the app directory WORKDIR /usr/src/app diff --git a/Dockerfile.server b/Dockerfile.server index d3c6ba3e..806c230f 100644 --- a/Dockerfile.server +++ b/Dockerfile.server @@ -3,8 +3,8 @@ FROM public.ecr.aws/docker/library/ruby:2.7.7 ARG USE_CRON=false ENV USE_CRON=${USE_CRON} -# Install cron -RUN apt-get -y update && apt-get install -y cron +# Update packages and install cron +RUN apt -y update && apt upgrade -yqq && apt install -y cron # Create the log file to be able to store logs RUN touch /var/log/cron.log # Cron (at least in Debian) does not execute crontabs with more than 1 hardlink, see bug 647193.