Skip to content

Instantly share code, notes, and snippets.

@assimovt
Created October 21, 2017 05:32
Show Gist options
  • Select an option

  • Save assimovt/9bd788ea79a11c5d19a03edb2fc1333b to your computer and use it in GitHub Desktop.

Select an option

Save assimovt/9bd788ea79a11c5d19a03edb2fc1333b to your computer and use it in GitHub Desktop.

Revisions

  1. Tair Assimov created this gist Oct 21, 2017.
    25 changes: 25 additions & 0 deletions Dockerfile
    Original 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"]