Skip to content

Instantly share code, notes, and snippets.

@aaronhenshaw
Created September 9, 2015 19:58
Show Gist options
  • Save aaronhenshaw/a660d90804ff40c06a2c to your computer and use it in GitHub Desktop.
Save aaronhenshaw/a660d90804ff40c06a2c to your computer and use it in GitHub Desktop.

Revisions

  1. aaronhenshaw created this gist Sep 9, 2015.
    15 changes: 15 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #############
    ### PULL REPO
    #############
    ENV PROJECT_HOME /opt/something
    RUN mkdir ${PROJECT_HOME}
    RUN git clone [email protected]:XXX/something.git ${PROJECT_HOME}/app

    #############
    ### RUN BUILD
    #############
    WORKDIR ${PROJECT_HOME}/app
    RUN grails clean

    EXPOSE 8443
    CMD ["grails", "prod", "run-app", "--https"]