Skip to content

Instantly share code, notes, and snippets.

@brachi-wernick
Last active February 24, 2020 21:11
Show Gist options
  • Save brachi-wernick/e3b6178ba8702e555d52b9801b459222 to your computer and use it in GitHub Desktop.
Save brachi-wernick/e3b6178ba8702e555d52b9801b459222 to your computer and use it in GitHub Desktop.
docker vert.x
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