1
0
mirror of https://github.com/fspc/biketree.git synced 2025-03-01 03:53:23 -05:00

This gets barcodes working by installing GD.

This commit is contained in:
Jonathan Rosenbaum 2017-09-06 03:47:56 +00:00
parent 7793ad6921
commit 8be8bd8154
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
############# #############
# Password is password for & # Password is password for &
# docker run -d --name bikebike --env VIRTUAL_HOST=bikebike.wvcompletestreets.org --expose 80 -v /home/freesource/public_html/bikebike:/usr/share/nginx/html nginx:1.11-alpine # docker run -d --name bikebike --env VIRTUAL_HOST=biketree.bikelover.org --expose 80 -v /somewhere/public_html/bikebike:/usr/share/nginx/html nginx:1.11-alpine
FROM nginx:1.11-alpine FROM nginx:1.11-alpine

View File

@ -10,8 +10,9 @@ MAINTAINER Jonathan Rosenbaum <gnuser@gmail.com>
# better hardwire www-data in the future in /etc/password # better hardwire www-data in the future in /etc/password
# and make sure nginx also starts with same user # and make sure nginx also starts with same user
RUN chown -R www-data:www-data /var/www/html; apk update; \ RUN chown -R www-data:www-data /var/www/html; apk update; \
apk add php5-mysql; \ apk add php5-mysql php5-gd; \
cp -a /etc/php5/* /usr/local/etc/php; \ cp -a /etc/php5/* /usr/local/etc/php; \
cp /usr/lib/php5/modules/mysql.so `php-config --extension-dir`/; \ cp /usr/lib/php5/modules/mysql.so `php-config --extension-dir`/; \
cp /usr/lib/php5/modules/gd.so `php-config --extension-dir`/; \
sed -i 's/short_open_tag.*$/short_open_tag = On/' /usr/local/etc/php/php.ini; sed -i 's/short_open_tag.*$/short_open_tag = On/' /usr/local/etc/php/php.ini;