Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM php:7.2-fpm-alpine3.8
- MAINTAINER MIGHRI Marouane <mmighri@fr.ibm.com>
- USER root
- #ENV http_proxy http://10.143.10.20:8080
- #ENV https_proxy http://10.143.10.20:8080
- ADD . /app
- WORKDIR /app/app
- RUN apk add --update --no-cache \
- $PHPIZE_DEPS \
- g++ \
- git \
- icu-dev \
- libxml2-dev \
- #nginx \
- postgresql-dev \
- zip \
- zlib-dev
- #RUN mkdir -p /run/nginx
- #RUN mkdir -p /var/run
- #ADD ./nginx.conf /etc/nginx/conf.d/default.conf
- #ADD ./www.conf /usr/local/etc/php-fpm.d/www.conf
- # install php-ext
- RUN docker-php-ext-configure zip \
- && docker-php-ext-configure intl --enable-intl \
- && docker-php-ext-install intl pdo_pgsql xml hash zip pgsql
- RUN pecl install mongodb
- RUN docker-php-ext-enable mongodb
- # install composer
- #COPY install-composer.sh /usr/local/bin/install-composer.sh
- #RUN chmod +x /usr/local/bin/install-composer.sh \
- # && install-composer.sh \
- # && composer global require hirak/prestissimo
- # build project
- #RUN composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader
- EXPOSE 8001
- CMD ["php", "-S", "0.0.0.0:8001", "web/app_dev.php"]
- #To build the image run this command
- #docker build -t aphpqmbeimage . -f DockerfileQ
- #To run the container make sur to use the data container as a volume :run this command
- #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