-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.devel
48 lines (40 loc) · 979 Bytes
/
Dockerfile.devel
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# syntax=docker/dockerfile:experimental
ARG ELIXIR_VERSION
ARG ERLANG_VERSION
ARG DEBIAN_VERSION
FROM hexpm/elixir:${ELIXIR_VERSION}-erlang-${ERLANG_VERSION}-debian-${DEBIAN_VERSION} AS base
ENTRYPOINT [ \
"/usr/bin/chrt", "--idle", "0", \
"/usr/bin/nice", "-n19", \
"/usr/bin/ionice", "--class", "idle", \
"mix" \
]
ENV GIT_COMMIT="dockerfile dummy"
# RUN apk add --no-cache build-base optipng inkscape nodejs npm brotli git ffmpeg gcompat
RUN apt-get update && apt-get install -y --no-install-recommends \
brotli \
build-essential \
ffmpeg \
git \
inkscape \
nodejs \
npm \
optipng \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /build
ARG UID=1000
ARG GID=1000
ENV MIX_HOME=/mix
RUN mkdir /mix && chmod og+rw /mix
RUN addgroup --gid $GID fakeuser && \
adduser \
--disabled-password \
--gecos "" \
--ingroup fakeuser \
--home /build \
--uid $UID \
fakeuser
USER $UID:$GID
RUN \
mix local.hex --force && \
mix local.rebar --force