Dockerfile 885 B

1234567891011121314151617181920
  1. FROM mysql:8.0.19
  2. MAINTAINER Volodymyr Tkach <vladimirok5959@gmail.com>
  3. COPY --chown=root:root ./docker /
  4. RUN echo "" >> /root/.profile && \
  5. echo "TIME_ZONE=\$(cat /etc/timezone)" >> /root/.profile && \
  6. echo "export TZ=\"\${TIME_ZONE}\"" >> /root/.profile && \
  7. echo "" >> /root/.bashrc && \
  8. echo "TIME_ZONE=\$(cat /etc/timezone)" >> /root/.bashrc && \
  9. echo "export TZ=\"\${TIME_ZONE}\"" >> /root/.bashrc && \
  10. echo "#!/bin/bash" > /usr/local/bin/tmp && \
  11. echo "" >> /usr/local/bin/tmp && \
  12. echo "# Set timezone" >> /usr/local/bin/tmp && \
  13. echo "TIME_ZONE=\$(cat /etc/timezone)" >> /usr/local/bin/tmp && \
  14. echo "export TZ=\"\${TIME_ZONE}\"" >> /usr/local/bin/tmp && \
  15. echo "" >> /usr/local/bin/tmp && \
  16. cat /usr/local/bin/docker-entrypoint.sh | tail -n +2 >> /usr/local/bin/tmp && \
  17. cat /usr/local/bin/tmp > /usr/local/bin/docker-entrypoint.sh && \
  18. rm /usr/local/bin/tmp