Last active
June 24, 2017 23:45
-
-
Save shatil/e9a2e85485408d744d7d4a0f5d3fbe31 to your computer and use it in GitHub Desktop.
Docker Compose a single service w/ image (Dockerfile included)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
8u121-jre-alpine: | |
image: helloworld_8u121-jre-alpine | |
ports: | |
- '9000:9000' | |
- '9443:9443' | |
version: '3' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:8u121-jre-alpine | |
COPY svc /svc | |
EXPOSE 9000 9443 | |
CMD ["/svc/bin/start", "-Dhttps.port=9443", "-Dplay.crypto.secret=secret"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment