Created
October 21, 2017 05:32
-
-
Save assimovt/9bd788ea79a11c5d19a03edb2fc1333b to your computer and use it in GitHub Desktop.
Deploying Elixir applications - Docker image
This file contains 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 characters
FROM buildpack-deps:jessie | |
MAINTAINER The Dockbit Team "team@dockbit.com" | |
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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment