1
- FROM ruby:3.3.0
1
+ FROM phusion/passenger-ruby33
2
2
ENV DEBIAN_FRONTEND=noninteractive
3
3
ENV workdir /var/www
4
-
5
- # Production OSM setup
6
4
ENV RAILS_ENV=production
7
5
8
6
# Install the openstreetmap-website dependencies
@@ -24,17 +22,17 @@ RUN apt-get update && apt-get install -y nodejs yarn && \
24
22
apt-get clean && \
25
23
rm -rf /var/lib/apt/lists/*
26
24
27
- # Install Passenger + Apache module
28
- RUN apt-get update && apt-get install -y \
29
- cmake \
30
- libgcrypt20 \
31
- openssl \
32
- rubygems \
33
- s3cmd && \
34
- apt-get clean && \
35
- rm -rf /var/lib/apt/lists/*
36
- RUN gem install passenger
37
- RUN passenger-install-apache2-module
25
+ # # Install Passenger + Apache module
26
+ # RUN apt-get update && apt-get install -y \
27
+ # cmake \
28
+ # libgcrypt20 \
29
+ # openssl \
30
+ # rubygems \
31
+ # s3cmd && \
32
+ # apt-get clean && \
33
+ # rm -rf /var/lib/apt/lists/*
34
+ # RUN gem install passenger
35
+ # RUN passenger-install-apache2-module
38
36
39
37
# RUN apt-get install -y libapache2-mod-passenger lighttpd
40
38
@@ -99,14 +97,13 @@ RUN a2enmod setenvif
99
97
RUN a2dissite 000-default
100
98
RUN a2ensite production
101
99
102
- # # Install Passenger + Apache module
103
- # RUN apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
104
- # RUN apt-get update
105
- # RUN apt-get install -y libapache2-mod-passenger lighttpd
106
-
107
100
# Enable the Passenger Apache module and restart Apache
108
101
RUN echo "ServerName $(cat /etc/hostname)" >> /etc/apache2/apache2.conf
109
- RUN a2enmod passenger
102
+
103
+ # # Install Passenger + Apache module
104
+ RUN passenger-install-apache2-module
105
+
106
+ # RUN a2enmod passenger
110
107
111
108
# Check installation
112
109
RUN /usr/bin/passenger-config validate-install
@@ -116,7 +113,7 @@ RUN /usr/sbin/passenger-memory-stats
116
113
RUN a2enmod proxy proxy_http rewrite lbmethod_byrequests proxy_fcgi
117
114
118
115
# Config the virtual host apache2
119
- RUN apache2ctl configtest
116
+ # RUN apache2ctl configtest
120
117
121
118
# Set Permissions for www-data
122
119
RUN chown -R www-data: $workdir
0 commit comments