Dockerfile-workers 720 B

1234567891011121314151617181920212223
  1. # Inherit from the official Synapse docker image
  2. FROM matrixdotorg/synapse
  3. # Install deps
  4. RUN apt-get update
  5. RUN apt-get install -y supervisor redis nginx
  6. # Remove the default nginx sites
  7. RUN rm /etc/nginx/sites-enabled/default
  8. # Copy Synapse worker, nginx and supervisord configuration template files
  9. COPY ./docker/conf-workers/* /conf/
  10. # Expose nginx listener port
  11. EXPOSE 8080/tcp
  12. # Volume for user-editable config files, logs etc.
  13. VOLUME ["/data"]
  14. # A script to read environment variables and create the necessary
  15. # files to run the desired worker configuration. Will start supervisord.
  16. COPY ./docker/configure_workers_and_start.py /configure_workers_and_start.py
  17. ENTRYPOINT ["/configure_workers_and_start.py"]