Skip to content

Instantly share code, notes, and snippets.

@rsampaio
Created December 21, 2015 11:16
Show Gist options
  • Save rsampaio/4f8ced8dfaaf2fc73f51 to your computer and use it in GitHub Desktop.
Save rsampaio/4f8ced8dfaaf2fc73f51 to your computer and use it in GitHub Desktop.
Dockerfile Elixir phoenix
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