-
Notifications
You must be signed in to change notification settings - Fork 1
/
dev.dockerfile
30 lines (20 loc) 路 661 Bytes
/
dev.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM elixir:1.6.1
LABEL name="slack_quiet_dev"
LABEL version="1.0.0"
LABEL maintainer="[email protected]"
# Install `inotify-tools` to enable Phoenix's live reloading.
RUN apt-get update && apt-get -y install inotify-tools
# Install the hex package manager.
RUN mix local.hex --force
# We need Erlang's build tool too.
RUN mix local.rebar --force
RUN mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez --force
# Create and change current directory.
WORKDIR /usr/src/app
# Install dependencies.
COPY mix.exs mix.lock ./
RUN mix deps.get
# Bundle app source.
COPY . .
# RUN mix compile
CMD ["mix", "phx.server"]