Skip to content
Snippets Groups Projects
Commit db5e8ae6 authored by Nicolas Borboën's avatar Nicolas Borboën
Browse files

[welcome] docker

Please note that there is still some URL to change.
parent f22106d6
No related branches found
No related tags found
No related merge requests found
Documentation
.git
.idea
#FROM php:7.3-stretch
FROM php:7.3-apache
RUN apt-get update; apt-get install -yq git vim zip;
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
RUN export PATH=$PATH:/root/.composer/vendor/bin
RUN docker-php-ext-install pdo pdo_mysql
RUN a2enmod rewrite
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
# XDEBUG
RUN yes | pecl install xdebug
RUN docker-php-ext-enable xdebug
# Enable Remote xdebug
RUN echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/xdebug.ini
RUN echo "xdebug.default_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini
RUN echo "xdebug.client_port=9000" >> /usr/local/etc/php/conf.d/xdebug.ini
RUN echo "xdebug.discover_client_host=on" >> /usr/local/etc/php/conf.d/xdebug.ini
# RUN chmod 777 -R /var/www/html/storage
# RUN apt-get install nodejs -y; apt-get install npm -y;
# RUN useradd -u 1000 containerUser
# RUN usermod -a -G root containerUser
\ No newline at end of file
This diff is collapsed.
......@@ -4,6 +4,7 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"serve-docker": "vue-cli-service serve --host 0.0.0.0",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment