Commit a6933338 authored by David Ivain's avatar David Ivain
Browse files

wip docker-compose et dockerfile(s)

parent 2daa750b
FROM php:5.6-apache-stretch
RUN mkdir /persist
RUN apt-get update
# RUN apt-get upgrade
# RUN apt-get install wget -y
RUN apt-get install -y nano git bsdtar curl zip unzip
RUN curl -sS | php
RUN mv composer.phar /usr/local/bin/composer
RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
RUN curl -sS | bash
RUN export PATH="$HOME/.symfony/bin:$PATH"
RUN mv /root/.symfony/bin/symfony /usr/local/bin/symfony
WORKDIR /var/www/html
RUN git clone
WORKDIR cd alecsia
# RUN rm composer.lock
# RUN COMPOSER_MEMORY_LIMIT=-1 composer install
# php vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
version: '3'
build: './alecsia'
- '8000:8000'
- ./persist:/persist
# depends_on:
# - mysql-db
# mysql-db:
# build: './mysql-db'
# command: --default-authentication-plugin=mysql_native_password
# restart: always
# environment:
FROM mysql
RUN apt-get update && apt-get install -y wget unzip php
RUN curl -sS | php
RUN mv composer.phar /usr/local/bin/composer
RUN mkdir /app
RUN wget
RUN unzip
WORKDIR teacherbook-master
RUN composer install
RUN mysql -u root -e "CREATE DATABASE alecsialegacy" && mysql -u root alecsialegacy < dump.sql
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment