-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
49 lines (36 loc) · 1.21 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM quay.io/fortawesome/elixir:1.16.0-otp26.2.1-rust1.75.0
ENV DEBIAN_FRONTEND noninteractive
# Update and install some software requirements
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
curl \
build-essential \
wget \
git \
make \
postgresql \
inotify-tools \
xz-utils \
unzip \
screen \
locales
# Install Node
ENV NPM_CONFIG_LOGLEVEL info
ENV NODE_VERSION 20.11.0
# install Node.js with package
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y nodejs
# install NPM version
ENV NPM_VERSION 10.4.0
RUN npm install -g npm@$NPM_VERSION
# install Hex
RUN mix local.hex --force
ENV PHOENIX_VERSION 1.7.10
# install the Phoenix Mix archive
RUN mix archive.install --force hex phx_new $PHOENIX_VERSION
RUN mix hex.info
# include Dockerize to help launching containers
RUN wget https://github.com/jwilder/dockerize/releases/download/v0.7.0/dockerize-linux-amd64-v0.7.0.tar.gz
RUN tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.7.0.tar.gz && rm dockerize-linux-amd64-v0.7.0.tar.gz
# include wait-for-it.sh
RUN curl -o /bin/wait-for-it.sh https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh
RUN chmod a+x /bin/wait-for-it.sh