Browse Source

This gets barcodes working by installing GD.

master
Jonathan Rosenbaum 7 years ago
parent
commit
8be8bd8154
  1. 2
      docker/Dockerfile
  2. 3
      docker/Dockerfile-fpm

2
docker/Dockerfile

@ -3,7 +3,7 @@
#############
# 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

3
docker/Dockerfile-fpm

@ -10,8 +10,9 @@ MAINTAINER Jonathan Rosenbaum <gnuser@gmail.com>
# better hardwire www-data in the future in /etc/password
# and make sure nginx also starts with same user
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 /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;

Loading…
Cancel
Save