| 123456789101112131415161718192021222324 |
- # based on animage from activemq with older version, upgraded version.
- FROM 10.5.5.200:5000/battlecamp/activemq:5.12.0
- # Copy the local package files to the container's workspace.
- ADD bin/battlecamp-go-gameserver /go/bin/battlecamp-go-gameserver
- # set rights
- RUN ["chmod", "755", "/go/bin/battlecamp-go-gameserver"]
- # install supervisor
- RUN apt-get update && apt-get install -y supervisor
- RUN mkdir -p /var/log/supervisor
- # install supervisord.conf
- COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
- RUN ["chmod", "755", "/etc/supervisor/conf.d/supervisord.conf"]
- RUN ["chmod", "755", "/usr/bin/supervisord"]
- # Run the battlecamp-go-gameserver command by default when the container starts.
- # ENTRYPOINT ["/go/bin/battlecamp-go-gameserver"]
- CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
- # Document that the service listens on port 8080.
- EXPOSE 8080
|