forked from hexlet-codebattle/codebattle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (22 loc) · 747 Bytes
/
Dockerfile
File metadata and controls
33 lines (22 loc) · 747 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
29
30
31
32
FROM elixir:1.4.5
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y wget curl inotify-tools git build-essential zip unzip && \
apt-get clean && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENV PHOENIX_VERSION 1.2.4
RUN mix archive.install --force https://github.com/phoenixframework/archives/raw/master/phoenix_new-$PHOENIX_VERSION.ez
RUN mix local.hex --force \
&& mix local.rebar --force
# Install Node and NPM
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y -q nodejs
WORKDIR /app
# install mix deps
ADD ./mix.exs /app
ADD ./mix.lock /app
RUN mix deps.get
# install npm deps
ADD ./package.json /app
ADD ./package-lock.json /app
RUN npm install
RUN mix compile
ADD . /app