Skip to content

Instantly share code, notes, and snippets.

@roadev
Created September 19, 2016 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roadev/3312a3455eadcb6120e4654740f7caba to your computer and use it in GitHub Desktop.
Save roadev/3312a3455eadcb6120e4654740f7caba to your computer and use it in GitHub Desktop.
Dockerfile for building magento 1.x development environment
FROM php:5.6-apache
RUN apt-get update && apt-get install -y \
libmcrypt-dev \
libxml2-dev \
libpng12-dev \
libjpeg-dev
RUN docker-php-ext-install mysqli
RUN docker-php-ext-install mcrypt
RUN docker-php-ext-install soap
RUN docker-php-ext-install gd
COPY entrypoint.sh /entrypoint.sh
RUN chmod 777 /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
# entrypoint.sh contains:
# #!/bin/bash
# chown -R www-data:www-data .
# exec "$@"
CMD ["apache2-foreground"]
@roadev
Copy link
Author

roadev commented Sep 19, 2016

Used with Debian 8 docker image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment