-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from robuust/heroku-20
Heroku 20
- Loading branch information
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Inherit from Heroku's stack | ||
FROM heroku/heroku:18 | ||
FROM heroku/heroku:20 | ||
LABEL maintainer="Bob Olde Hampsink <[email protected]>" | ||
|
||
# Internally, we arbitrarily use port 3000 | ||
|
@@ -24,7 +24,7 @@ WORKDIR /app/user | |
ENV PATH /app/.heroku/php/bin:/app/.heroku/php/sbin:/app/.heroku/node/bin/:/app/user/node_modules/.bin:/app/user/vendor/bin:/app/user/:$PATH | ||
|
||
# Install Apache | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-18-stable/apache-$HTTPD_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-20-stable/apache-$HTTPD_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
# Config | ||
RUN curl --silent --location https://raw.githubusercontent.com/heroku/heroku-buildpack-php/master/support/build/_conf/apache2/httpd.conf > /app/.heroku/php/etc/apache2/httpd.conf | ||
# FPM socket permissions workaround when run as root | ||
|
@@ -33,7 +33,7 @@ Group root\n\ | |
" >> /app/.heroku/php/etc/apache2/httpd.conf | ||
|
||
# Install Nginx | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-18-stable/nginx-$NGINX_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-20-stable/nginx-$NGINX_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
# Config | ||
RUN curl --silent --location https://raw.githubusercontent.com/heroku/heroku-buildpack-php/master/conf/nginx/main.conf > /app/.heroku/php/etc/nginx/nginx.conf | ||
# FPM socket permissions workaround when run as root | ||
|
@@ -42,13 +42,13 @@ user nobody root;\n\ | |
" >> /app/.heroku/php/etc/nginx/nginx.conf | ||
|
||
# Install PHP | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-18-stable/php-$PHP_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-20-stable/php-$PHP_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
# Config | ||
RUN mkdir -p /app/.heroku/php/etc/php/conf.d | ||
RUN curl --silent --location https://raw.githubusercontent.com/heroku/heroku-buildpack-php/master/support/build/_conf/php/7/0/conf.d/000-heroku.ini > /app/.heroku/php/etc/php/php.ini | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-18-stable/extensions/no-debug-non-zts-20190902/redis-$REDIS_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-18-stable/extensions/no-debug-non-zts-20190902/imagick-$IMAGICK_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-18-stable/extensions/no-debug-non-zts-20190902/pcov-$PCOV_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-20-stable/extensions/no-debug-non-zts-20190902/redis-$REDIS_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-20-stable/extensions/no-debug-non-zts-20190902/imagick-$IMAGICK_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-20-stable/extensions/no-debug-non-zts-20190902/pcov-$PCOV_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
# Enable all optional exts | ||
RUN echo "\n\ | ||
user_ini.cache_ttl = 30 \n\ | ||
|
@@ -74,7 +74,7 @@ extension=xsl.so \n\ | |
" >> /app/.heroku/php/etc/php/php.ini | ||
|
||
# Install Composer | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-18-stable/composer-$COMPOSER_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
RUN curl --silent --location https://lang-php.s3.amazonaws.com/dist-heroku-20-stable/composer-$COMPOSER_VERSION.tar.gz | tar xz -C /app/.heroku/php | ||
|
||
# Install Node | ||
RUN curl --silent --location https://s3pository.heroku.com/node/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz | tar --strip-components=1 -xz -C /app/.heroku/node | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters