Dockerfile 342 B

12345678910111213141516
  1. FROM mariadb:10.4
  2. RUN apt-get -y update && \
  3. apt-get -y install ruby ruby-mysql2 && \
  4. gem update --system && \
  5. gem install bundler
  6. ADD db/bin /scripts
  7. RUN cd /scripts && bundle install
  8. ADD db/schema.sql /docker-entrypoint-initdb.d/schema.sql
  9. ENV MYSQL_RANDOM_ROOT_PASSWORD=1
  10. ENV MYSQL_USER=dovecot
  11. ENV MYSQL_DATABASE=dovecot