forked from code-corps/code-corps-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 632 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (20 loc) · 632 Bytes
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
FROM elixir:1.3.4
ENV APP_HOME /code-corps-api
RUN mkdir $APP_HOME
RUN apt-get update -qq && apt-get install -y build-essential
RUN apt-get install -y -q apt-utils
RUN apt-get install -y -q inotify-tools
# PostgreSQL
RUN apt-get install -y libpq-dev
# Install the Phoenix framework itself
RUN mix archive.install --force https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez
# Set directory for our app
WORKDIR $APP_HOME
COPY mix.exs mix.lock $APP_HOME/
# Install hex
RUN mix local.hex --force && \
mix local.rebar --force && \
mix deps.clean --all && \
mix deps.get
# Copy code
ADD . $APP_HOME