Skip to content

Commit 66977de

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 66977de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 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,10 +9,6 @@ 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 \
1814
supervisor locales nodejs vim nano \
@@ -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

0 commit comments

Comments
 (0)