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
29 lines (22 loc) · 917 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 917 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
FROM elixir:1.5
RUN set -ex \
buildDeps=" \
apt-utils \
" && \
apt-get -qq update && \
apt-get -qq install --assume-yes $buildDeps --no-install-recommends && \
# NodeJS
curl --silent --location https://deb.nodesource.com/setup_8.x | bash - && \
apt-get -qq update && apt-get -qq --assume-yes install nodejs && \
# Yarn
curl --silent --show-error https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get -qq update && apt-get -qq --assume-yes install yarn && \
# Clean
apt-get -qq purge --assume-yes --auto-remove -o APT::AutoRemove::RecommendsImportant=false $buildDeps && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
# Elixir
mix local.hex --force && \
mix local.rebar --force
WORKDIR /app