Update docker build script and tools

This commit is contained in:
2018-04-12 07:32:44 +03:00
parent c4f11d1e69
commit a239631e9b
8 changed files with 40 additions and 34 deletions

20
docker/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM php:7.2-cli
# Project folder
RUN mkdir -p /srv/app
WORKDIR /srv/app
RUN apt-get update \
&& apt-get install -y git zip curl gnupg \
&& rm -rf /var/lib/apt/lists/*
# get composer and required tools
RUN curl -sLO https://getcomposer.org/download/1.6.3/composer.phar \
&& mv composer.phar /usr/local/bin/composer \
&& chmod +x /usr/local/bin/composer
# Deployer
RUN curl -sLO https://deployer.org/releases/v6.0.3/deployer.phar \
&& mv deployer.phar /usr/local/bin/dep \
&& chmod +x /usr/local/bin/dep