Skip to content

Commit

Permalink
updating packages in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Kat-Alo committed Nov 14, 2023
1 parent b4e8dd4 commit b65f903
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b65f903

Please sign in to comment.