File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 11FROM ruby:3.0.0
22
3- RUN apt-get update \
4- && apt-get install -y --no-install-recommends \
5- postgresql-client \
6- && rm -rf /var/lib/apt/lists/*
3+ # Switch package repositories to "archive" because the OS image based on Ruby 3.0.0 is EOL (End Of Life)
4+ # Based on https://unix.stackexchange.com/questions/743839/apt-get-update-failed-to-fetch-debian-amd64-packages-while-building-dockerfile-f
5+ RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list && \
6+ sed -i s/security.debian.org/archive.debian.org/g /etc/apt/sources.list && \
7+ sed -i s/stretch-updates/stretch/g /etc/apt/sources.list && \
8+ apt-get update && \
9+ apt-get install -y --no-install-recommends postgresql-client && \
10+ rm -rf /var/lib/apt/lists/*
711
812WORKDIR /usr/src/app
913COPY Gemfile* ./
You can’t perform that action at this time.
0 commit comments