Created
December 21, 2015 11:16
-
-
Save rsampaio/4f8ced8dfaaf2fc73f51 to your computer and use it in GitHub Desktop.
Dockerfile Elixir phoenix
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 alpine | |
RUN echo 'http://dl-4.alpinelinux.org/alpine/edge/main' > /etc/apk/repositories && \ | |
echo 'http://dl-4.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && \ | |
apk add --update elixir gettext-dev erlang-crypto nodejs && \ | |
rm -rf /var/cache/apk | |
RUN adduser -D -h /app app | |
USER app | |
COPY . /app | |
WORKDIR /app | |
RUN mix local.hex --force && \ | |
mix deps.get && \ | |
npm install | |
CMD ["mix", "phoenix.server"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment