Dockerfile init

pull/10/head
root 2018-06-04 18:52:42 +02:00
parent 3fba1517c4
commit 126301954b
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
FROM janitortechnology/ubuntu-dev
# Install dependencies.
RUN sudo apt-get update -q && sudo apt-get install -qy \
php \
composer \
npm
# Download source code.
RUN git clone -b master https://github.com/SundownDEV/Am-I-late /home/user/Am-I-late
WORKDIR /home/user/am-i-late
# Configure the workspace.
ENV WORKSPACE /home/user/Am-I-late/
# Install dependencies.
RUN composer install \
&& cd client \
&& npm install
# Configure and build
RUN php bin/console doctrine:database:create \
&& php bin/console doctrine:migration:migrate
#COPY --chown=user:user supervisord.conf /tmp/supervisord-extra.conf
#RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf
EXPOSE 3000 8000