Skip to content

Instantly share code, notes, and snippets.

@mike-boddin
Created December 14, 2015 12:10
Show Gist options
  • Select an option

  • Save mike-boddin/4da9d4c6def0e097b275 to your computer and use it in GitHub Desktop.

Select an option

Save mike-boddin/4da9d4c6def0e097b275 to your computer and use it in GitHub Desktop.

Revisions

  1. mike-boddin created this gist Dec 14, 2015.
    9 changes: 9 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    FROM java:8
    EXPOSE 8080
    ENV CODENVY_APP_PORT_8080_HTTP 8080
    RUN mkdir -p /home/user/app
    WORKDIR /home/user/app
    ADD $app$ /home/user/$app$
    RUN unzip -q /home/user/$app$ -d /home/user/app && \
    rm /home/user/$app$
    CMD java -jar application.jar $args$ run