Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

History

History
History
91 lines (78 loc) 路 2.23 KB

File metadata and controls

91 lines (78 loc) 路 2.23 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
FROM ubuntu:22.04
# Set bash as the default shell
SHELL ["/bin/bash", "-c"]
# Avoid prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Set up timezone
RUN apt-get update && apt-get install -y tzdata \
&& ln -fs /usr/share/zoneinfo/UTC /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata
# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
git \
curl \
wget \
gnupg \
ca-certificates \
apt-transport-https \
lsb-release \
python3 \
openssl \
libncurses5-dev \
locales \
inotify-tools \
unzip \
automake \
autoconf \
libreadline-dev \
libssl-dev \
libyaml-dev \
libxslt-dev \
libffi-dev \
libtool \
openjdk-11-jdk \
ghostscript \
libreoffice \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Set locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Install asdf
ENV ASDF_VERSION=0.18.0
RUN ARCH=$(uname -m) && \
if [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then \
ASDF_ARCH="arm64"; \
else \
ASDF_ARCH="amd64"; \
fi && \
wget https://github.com/asdf-vm/asdf/releases/download/v${ASDF_VERSION}/asdf-v${ASDF_VERSION}-linux-${ASDF_ARCH}.tar.gz \
&& tar -xzf asdf-v${ASDF_VERSION}-linux-${ASDF_ARCH}.tar.gz \
&& rm asdf-v${ASDF_VERSION}-linux-${ASDF_ARCH}.tar.gz \
&& mv asdf /usr/bin/
# Install Erlang and Elixir using asdf
RUN asdf plugin add erlang \
&& asdf plugin add elixir \
&& asdf install erlang 28.0.1 \
&& asdf install elixir 1.18.4-otp-28 \
&& asdf set -u erlang 28.0.1 \
&& asdf set -u elixir 1.18.4-otp-28
# Install Node.js using asdf
RUN asdf plugin add nodejs \
&& asdf install nodejs 22.17.0 \
&& asdf set -u nodejs 22.17.0
ENV PATH="/root/.asdf/shims:$PATH"
# Install Hex and Phoenix
RUN mix local.hex --force \
&& mix local.rebar --force \
&& mix archive.install hex phx_new --force
# custom ERL_FLAGS are passed for (public) multi-platform builds
ARG ERL_FLAGS
ENV ERL_FLAGS=$ERL_FLAGS
EXPOSE 4000
USER root
WORKDIR /app
ENTRYPOINT ["bash", "-c", "mix deps.get && mix ecto.migrate && cd assets && npm i && cd .. && mix phx.server"]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.