You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

  1. FROM dimti/workspace:7.4
  2. ###########################################################################
  3. # Laradock non-root user:
  4. ###########################################################################
  5. ARG PUID=1000
  6. ENV PUID ${PUID}
  7. ARG PGID=1000
  8. ENV PGID ${PGID}
  9. RUN usermod -u ${PUID} laradock && groupmod -g ${PGID} laradock
  10. RUN chown -R ${PUID}:${PGID} /home/laradock
  11. ###########################################################################
  12. # Set Timezone
  13. ###########################################################################
  14. ARG TZ=Europe/Moscow
  15. ENV TZ ${TZ}
  16. RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
  17. ###########################################################################
  18. # Additional PHP-extensions:
  19. ###########################################################################
  20. RUN pecl install igbinary \
  21. && pecl install -a redis
  22. ###########################################################################
  23. # S3 config
  24. ###########################################################################
  25. USER laradock
  26. COPY ./minio/auth.json /home/laradock/.mc/config.json
  27. ###########################################################################
  28. # Crontab
  29. ###########################################################################
  30. USER root
  31. COPY ./crontab74 /etc/cron.d
  32. RUN chmod -R 644 /etc/cron.d