Dockerfile-go-server 896 B

123456789101112131415161718192021222324
  1. # based on animage from activemq with older version, upgraded version.
  2. FROM 10.5.5.200:5000/battlecamp/activemq:5.12.0
  3. # Copy the local package files to the container's workspace.
  4. ADD bin/battlecamp-go-gameserver /go/bin/battlecamp-go-gameserver
  5. # set rights
  6. RUN ["chmod", "755", "/go/bin/battlecamp-go-gameserver"]
  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 supervisord.conf /etc/supervisor/conf.d/supervisord.conf
  12. RUN ["chmod", "755", "/etc/supervisor/conf.d/supervisord.conf"]
  13. RUN ["chmod", "755", "/usr/bin/supervisord"]
  14. # Run the battlecamp-go-gameserver command by default when the container starts.
  15. # ENTRYPOINT ["/go/bin/battlecamp-go-gameserver"]
  16. CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
  17. # Document that the service listens on port 8080.
  18. EXPOSE 8080