Skip to content

Instantly share code, notes, and snippets.

@philss
Created February 20, 2018 03:25
Show Gist options
  • Save philss/e497a92efe48dd00b969219ff07fdf21 to your computer and use it in GitHub Desktop.
Save philss/e497a92efe48dd00b969219ff07fdf21 to your computer and use it in GitHub Desktop.
Example of Dockerfile for a Phoenix App
FROM elixir:1.6.0-alpine
RUN mix local.hex --force \
&& mix local.rebar --force \
&& apk --no-cache --update add postgresql-client bash \
&& rm -rf /var/cache/apk/* \
&& mkdir /app
COPY . /app
WORKDIR /app
RUN mix deps.get
EXPOSE 4000
CMD ["mix", "phx.server"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment