Last active
February 24, 2020 21:11
-
-
Save brachi-wernick/e3b6178ba8702e555d52b9801b459222 to your computer and use it in GitHub Desktop.
docker vert.x
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 java:8-jre | |
ENV VERTICLE_FILE starter-1.0.0-SNAPSHOT-fat.jar | |
# Set the location of the verticles | |
ENV VERTICLE_HOME /usr/verticles | |
EXPOSE 8882 | |
# Copy your fat jar to the container | |
COPY target/$VERTICLE_FILE $VERTICLE_HOME/ | |
# Launch the verticle | |
WORKDIR $VERTICLE_HOME | |
ENTRYPOINT ["sh", "-c"] | |
CMD ["exec java -server -Xmx8g -jar $VERTICLE_FILE"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment