Skip to content

Commit bf69c05

Browse files
committed
add mod-pagespeed to build directly
1 parent 9c9a13f commit bf69c05

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Use a more recent base image
21
FROM ubuntu:20.04
32

43
# Metadata as defined at http://label-schema.org
@@ -88,10 +87,9 @@ RUN chmod -R 755 /opt/* \
8887
&& cp /opt/app/supervisord /etc/supervisor/conf.d/supervisord.conf
8988

9089
# Install Mod_pagespeed Module
91-
RUN curl -O https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb \
92-
&& dpkg -i mod-pagespeed-stable_current_amd64.deb \
90+
RUN dpkg -i /opt/app/mod-pagespeed-stable_current_amd64.deb \
9391
&& chown nobody:www-data /var/cache/mod_pagespeed \
94-
&& chown nobody:www-data /var/log/pagespeed/
92+
&& chown nobody:www-data /var/log/pagespeed
9593

9694
# Composer v2 installation
9795
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
7.92 MB
Binary file not shown.

0 commit comments

Comments
 (0)