-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruntime_Dockerfile
More file actions
33 lines (25 loc) · 1.11 KB
/
runtime_Dockerfile
File metadata and controls
33 lines (25 loc) · 1.11 KB
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
FROM debian:9
ENV APP_NAME=yourapp
RUN mkdir -p /app/${APP_NAME}
COPY ${APP_NAME} /app/${APP_NAME}
RUN apt-get clean && apt-get update && apt-get install -y openssl inotify-tools ca-certificates locales imagemagick
RUN locale-gen "C.UTF-8"
ENV LANGUAGE="C.UTF-8"
ENV LANG="C.UTF-8"
ENV LC_ALL="C.UTF-8"
ENV LC_CTYPE="C.UTF-8"
RUN sed -i -e 's/# C.UTF-8 UTF-8/C.UTF-8 UTF-8/' /etc/locale.gen
RUN echo "LANG=C.UTF-8" > /etc/default/locale
RUN dpkg-reconfigure --frontend=noninteractive locales
ENV REPLACE_OS_VARS=true
ENV PORT=8000
#Erlang port mapper daemon is at port 4369
#Node ports are at 10001 - 10010
#Set node port assignment by setting inet_dist_listen_min and max
#interactively iex --name yourapp@example.com --cookie monster --erl "-kernel inet_dist_listen_min 10001 inet_dist_listen_max 10010"
# or add this to your vm.args in ./rel:
# -kernel inet_dist_listen_min 10001 inet_dist_listen_max 10010
# Altertively use the same port as min and max if only running a single node in each container
EXPOSE 8000 4369 10001-10010
#Environment variables are not expanded in CMD
CMD ["/app/yourapp/bin/yourapp", "foreground"]