-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
30 lines (25 loc) · 989 Bytes
/
Dockerfile
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
FROM hexpm/elixir:1.17.3-erlang-27.1.2-alpine-3.20.3
LABEL maintainer="Jhon Pedroza <jpedroza@cuentamono.com>"
ENV PHOENIX_VERSION=1.7.14
# Try to appsignal on m1
ENV APPSIGNAL_BUILD_FOR_MUSL=1
# Base packages and nodejs
RUN apk add --no-cache --update \
bash gcc \
libc-dev git nodejs npm inotify-tools \
ca-certificates openssl-dev make automake \
autoconf musl musl-dev gnupg neovim
# PDF tools
RUN apk --no-cache add -U weasyprint py3-brotli poppler-utils
# Wallaby tests
RUN apk add --update-cache g++ chromium chromium-chromedriver
RUN mkdir -p /usr/share/fonts/TTF
RUN wget -O /usr/share/fonts/TTF/Lato-Regular.ttf https://mono-colombia-public.s3.amazonaws.com/fonts/Lato-Regular.ttf
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
RUN touch ~/.bashrc
RUN echo 'alias vim=nvim' >> ~/.bashrc
RUN /bin/bash -c "mix local.hex --force"
RUN /bin/bash -c "mix local.rebar --force"
RUN /bin/bash -c "mix archive.install --force hex phx_new $PHOENIX_VERSION"