Dockerfile-with-Mysql 891 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. FROM php:5.6-apache
  2. LABEL Name=discuz Version=0.0.1
  3. RUN echo "Asia/Shanghai" > /etc/timezone;dpkg-reconfigure -f noninteractive tzdata
  4. RUN apt-get update && apt-get install -y \
  5. php5-mcrypt \
  6. libmcrypt4 \
  7. libmcrypt-dev \
  8. libpng-dev \
  9. vim \
  10. curl \
  11. rsync \
  12. wget \
  13. --no-install-recommends && rm -r /var/lib/apt/lists/*
  14. RUN docker-php-ext-install \
  15. mysql \
  16. mysqli \
  17. sockets \
  18. pdo \
  19. pdo_mysql \
  20. mbstring \
  21. mcrypt \
  22. gd
  23. RUN mkdir -p /app/discuz && alias ll='ls -alF'
  24. ADD ./app /app/discuz
  25. RUN chown www-data:www-data /app/discuz/ -R
  26. RUN chmod -R 777 /app/discuz
  27. COPY config/000-default.conf /etc/apache2/sites-available/000-default.conf
  28. COPY config/apache2.conf /etc/apache2/apache2.conf
  29. WORKDIR /app
  30. VOLUME /data
  31. ENTRYPOINT ["/app/discuz/docker-entrypoint.sh"]
  32. EXPOSE 80
  33. # CMD [ "apache2","-DFOREGROUND" ]
  34. FROM mysql:5.6