initial commit
- lumen installed - docker env setup
This commit is contained in:
25
docker/Dockerfile
Executable file
25
docker/Dockerfile
Executable file
@@ -0,0 +1,25 @@
|
||||
# Create a base Ubuntu image to build upon
|
||||
FROM ubuntu:16.04
|
||||
MAINTAINER Richard Morgan <r_morgan@sympatico.ca>
|
||||
|
||||
VOLUME ["/var/www"]
|
||||
WORKDIR /var/www
|
||||
|
||||
# set terminal variable so that tools such as nano and htop work
|
||||
# this is not needed in prod containers, but is useful for devs
|
||||
ENV TERM=xterm
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
COPY ./docker/docker-entrypoint.sh /docker-entrypoint.sh
|
||||
ENTRYPOINT /docker-entrypoint.sh
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl nano sed libwww-perl htop \
|
||||
php7.0 php-cli php-fpm php-curl php-pear php-mcrypt php-zip php-mbstring php-xml \
|
||||
php-pgsql php-redis \
|
||||
php-xdebug \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
COPY ./ /var/www/
|
||||
COPY ./docker/docker-php-fpm.conf /etc/php/7.0/fpm/pool.d/www.conf
|
||||
Reference in New Issue
Block a user