Created
October 21, 2017 05:32
-
-
Save assimovt/9bd788ea79a11c5d19a03edb2fc1333b to your computer and use it in GitHub Desktop.
Revisions
-
Tair Assimov created this gist
Oct 21, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ FROM buildpack-deps:jessie MAINTAINER The Dockbit Team "[email protected]" ARG RELEASE=master ENV HOME /root ENV MIX_ENV prod ENV PORT 4000 ENV REPLACE_OS_VARS true ENV APP_ROOT /opt/app ENV APP_NAME dockbit_phoenix_example RUN mkdir -p ${APP_ROOT} RUN wget --quiet https://s3.amazonaws.com/dockbitexamples-elixir-phoenix/releases/${RELEASE}.tar.gz && \ tar -xf ${RELEASE}.tar.gz -C ${APP_ROOT} && \ rm -rf ${RELEASE}.tar.gz && \ chmod 550 ${APP_ROOT}/bin/${APP_NAME} WORKDIR ${APP_ROOT} EXPOSE $PORT ENTRYPOINT ["bin/dockbit_phoenix_example", "foreground"]