Dockerfile-go-server 843 B

1234567891011121314151617181920212223
  1. # based on animage from activemq with older version, upgraded version.
  2. FROM activemq:5.12.0
  3. # Copy the local package files to the container's workspace.
  4. ADD bin/battlecamp-go-server /go/bin/battlecamp-go-server
  5. # set rights
  6. RUN ["chmod", "755", "/go/bin/battlecamp-go-server"]
  7. # install supervisor
  8. RUN apt-get update && apt-get install -y supervisor
  9. RUN mkdir -p /var/log/supervisor
  10. # install supervisord.conf
  11. COPY src/battlecamp-go/battlecamp-go-server/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
  12. RUN ["chmod", "755", "/etc/supervisor/conf.d/supervisord.conf"]
  13. # Run the battlecamp-go-server command by default when the container starts.
  14. # ENTRYPOINT ["/go/bin/battlecamp-go-server"]
  15. CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
  16. # Document that the service listens on port 8080.
  17. EXPOSE 8080