Skip to content

Commit 970abae

Browse files
committed
Docker: rearrange Dockerfile
We're seeing problems with the docker image build, so hopefully this will help address them.
1 parent 55d8b91 commit 970abae

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:3.4.1
1+
FROM ruby:3.4.1-bullseye
22

33
ENV RACK_ENV=production
44
ENV RAILS_ENV=production
@@ -9,13 +9,9 @@ EXPOSE 8080
99

1010
SHELL ["/bin/bash", "-c"]
1111

12-
WORKDIR /app
13-
ADD Gemfile Gemfile.lock /app/
14-
RUN gem install bundler:$BUNDLER_VERSION && bundle install
15-
1612
RUN apt-get update \
1713
&& apt-get install -y --no-install-recommends \
18-
supervisor locales nodejs vim nano \
14+
python3-pkg-resources supervisor locales nodejs vim nano \
1915
&& apt-get clean \
2016
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2117

@@ -39,6 +35,10 @@ RUN curl -fsSLO "$SUPERCRONIC_URL" \
3935
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
4036
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
4137

38+
WORKDIR /app
39+
ADD Gemfile Gemfile.lock /app/
40+
RUN gem install bundler:$BUNDLER_VERSION && bundle install
41+
4242
ADD docker/supervisord.conf /etc/supervisord.conf
4343
ADD docker/start.sh /app/
4444
ADD . /app

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ group :development, :test do
4343
gem "coveralls_reborn", require: false
4444
gem "debug"
4545
gem "factory_bot"
46-
gem "pry-byebug"
4746
gem "rspec"
4847
gem "rspec-rails"
4948
gem "simplecov"

0 commit comments

Comments
 (0)