forked from wraft/wraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
46 lines (36 loc) · 1.12 KB
/
Dockerfile.dev
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
FROM hexpm/elixir:1.13.0-erlang-24.0.5-ubuntu-focal-20210325
RUN apt-get update && \
apt-get install -y \
postgresql-client inotify-tools
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential xorg libssl-dev libxrender-dev git wget gdebi xvfb \
# Install wkhtml to pdf
wkhtmltopdf \
# Install pandoc
pandoc \
# Install latex
# texlive-latex-base \
# texlive-latex-recommended \
# texlive-pictures \
# texlive \
texlive-fonts-recommended \
texlive-plain-generic \
texlive-latex-extra \
texlive-xetex
RUN echo "xvfb-run -a -s \"-screen 0 640x480x16\" wkhtmltopdf \"\$@\"" >/usr/local/bin/wkhtmltopdf-wrapper && chmod +x /usr/local/bin/wkhtmltopdf-wrapper
COPY ./entrypoint_dev.sh /app/
# COPY ./entrypoint_dev.sh /app/entrypoint.sh
WORKDIR /app
COPY config /app/config
COPY lib /app/lib
COPY mix.exs mix.lock /app/
COPY priv priv
COPY assets assets
ARG SECRET_KEY_BASE
# only for dev
COPY ./entrypoint_dev.sh /app/
RUN mix local.hex --force && \
mix local.rebar --force && \
mix deps.get
RUN mix do compile
CMD ["bash", "/app/entrypoint_dev.sh"]