* Upgrade base image to ruby 2.7
[arvados-k8s.git] / dockerfiles / Dockerfile.rails-runtime
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 FROM phusion/passenger-ruby27
6
7 RUN apt-get update && apt-get install -y gnupg2
8
9 # put nginx in daemon mode again; the arvados-workbench package restarts
10 # nginx, which would lead to a hang otherwise...
11 RUN sed -i 's/daemon off;/#daemon off;/' /etc/nginx/nginx.conf
12
13 ADD 1078ECD7.asc /tmp/
14 RUN cat /tmp/1078ECD7.asc | apt-key add -
15
16 RUN echo "deb http://apt.arvados.org/focal focal main" > /etc/apt/sources.list.d/apt.arvados.org.list
17
18 RUN apt-get update && apt-get install -qqy tzdata
19
20 # preinstall latest arvados rails packages, so that we have (most of) the gems
21 # baked into this docker image. Then remove them so that this image is generic.
22 # The bundles will remain installed.
23 RUN apt-get install -qqy arvados-workbench arvados-api-server
24 RUN apt-get remove -qqy arvados-workbench arvados-api-server arvados-server
25
26 # put nginx.conf back into the state it needs to be
27 RUN sed -i 's/#daemon off;/daemon off;/' /etc/nginx/nginx.conf
28
29 RUN apt-get install -qqy postgresql-client
30
31 RUN rm /etc/nginx/sites-enabled/default
32 RUN rm /etc/service/nginx/down
33
34 COPY bootstrap.sh /usr/local/bin/bootstrap.sh