forked from joinum/parzival
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
29 lines (21 loc) · 779 Bytes
/
Dockerfile.dev
File metadata and controls
29 lines (21 loc) · 779 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.13-alpine
# Install build dependencies
RUN apk add --no-cache build-base git python3
# Install frontend dependencies
RUN apk add --no-cache nodejs npm
RUN npm install -g npx
# Install pdf generation dependencies
RUN apk add --no-cache \
libgcc libstdc++ libx11 glib libxrender libxext libintl \
ttf-dejavu ttf-droid ttf-freefont ttf-liberation
COPY --from=madnight/alpine-wkhtmltopdf-builder:0.12.5-alpine3.10-606718795 \
/bin/wkhtmltopdf /bin/wkhtmltopdf
# Install imagemagick dependencies
RUN apk add --no-cache file imagemagick
# Install development dependencies
RUN apk add --no-cache inotify-tools
# Install hex + rebar
RUN mix local.hex --force && \
mix local.rebar --force
WORKDIR /app
CMD [ "sh", "-c", "mix setup; mix phx.server" ]