Advertisement
Guest User

Untitled

a guest
Jan 10th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. FROM php:7.2-fpm-alpine3.8
  2.  
  3. MAINTAINER MIGHRI Marouane <mmighri@fr.ibm.com>
  4.  
  5. USER root
  6. #ENV http_proxy http://10.143.10.20:8080
  7. #ENV https_proxy http://10.143.10.20:8080
  8.  
  9. ADD . /app
  10. WORKDIR /app/app
  11.  
  12. RUN apk add --update --no-cache \
  13. $PHPIZE_DEPS \
  14. g++ \
  15. git \
  16. icu-dev \
  17. libxml2-dev \
  18. #nginx \
  19. postgresql-dev \
  20. zip \
  21. zlib-dev
  22.  
  23. #RUN mkdir -p /run/nginx
  24. #RUN mkdir -p /var/run
  25.  
  26. #ADD ./nginx.conf /etc/nginx/conf.d/default.conf
  27. #ADD ./www.conf /usr/local/etc/php-fpm.d/www.conf
  28.  
  29. # install php-ext
  30. RUN docker-php-ext-configure zip \
  31. && docker-php-ext-configure intl --enable-intl \
  32. && docker-php-ext-install intl pdo_pgsql xml hash zip pgsql
  33.  
  34. RUN pecl install mongodb
  35. RUN docker-php-ext-enable mongodb
  36.  
  37. # install composer
  38. #COPY install-composer.sh /usr/local/bin/install-composer.sh
  39.  
  40. #RUN chmod +x /usr/local/bin/install-composer.sh \
  41. # && install-composer.sh \
  42. # && composer global require hirak/prestissimo
  43.  
  44. # build project
  45. #RUN composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader
  46.  
  47. EXPOSE 8001
  48.  
  49. CMD ["php", "-S", "0.0.0.0:8001", "web/app_dev.php"]
  50.  
  51. #To build the image run this command
  52. #docker build -t aphpqmbeimage . -f DockerfileQ
  53.  
  54. #To run the container make sur to use the data container as a volume :run this command
  55. #docker run -ti -p 8001:8001 --rm --name aphpqmbecontainer --env PORTAL_DB_PATIENT_HOST=127.0.0.1 --env PORTAL_DB_PATIENT_PORT=5432 --env PORTAL_DB_PATIENT_NAME=patient --env PORTAL_DB_PATIENT_USER=postgres --env PORTAL_DB_PATIENT_PASSWORD=toor --env PORTAL_DB_BACKOFFICE_HOST=127.0.0.1 --env PORTAL_DB_BACKOFFICE_PORT=5432 --env PORTAL_DB_BACKOFFICE_NAME='qm-backoffice' --env PORTAL_DB_BACKOFFICE_USER=postgres --env PORTAL_DB_BACKOFFICE_PASSWORD=toor --env PORTAL_MONGO_HOST=127.0.0.1 --env PORTAL_MONGO_PORT=2717 --env PORTAL_MONGO_DBNAME=qm-patient --env PORTAL_MONGO_COLLECTION=mongoDbObject aphpqmbeimage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement