-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
59 lines (47 loc) · 1.01 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
50
51
52
53
54
55
56
57
58
59
FROM archlinux/base:latest
FROM elixir:1.9.4
# FROM trenpixster/elixir:latest
#packman setup
# RUN ./pacman -Syyu --noconfirm
# RUN ./pacman-db-upgrade
# RUN ./pacman -S --noconfirm nodejs wkhtmltopdf
RUN mkdir drinkly
WORKDIR drinkly
FROM node:10.16.1
# packman setup
RUN ./pacman -Syyu --noconfirm
RUN ./pacman-db-upgrade
RUN ./pacman -S --noconfirm nodejs wkhtmltopdf
#command to build & release app
COPY ./mix.exs /drinkly/mix.exs
COPY ./mix.lock /drinkly/mix.lock
RUN echo y | mix local.hex
RUN mix deps.get --force
COPY ./ /drinkly
ENV PORT 4000
ENV MIX_ENV prod
EXPOSE 4000
EXPOSE 8080
RUN echo y | mix compile --force
RUN mix drinkly.setup
RUN mix release drinkly_linux
#
#
#
#
# #================
# #Deployment Stage
# #================
# FROM pentacent/alpine-erlang-base:latest
#
# #Set environment variables and expose port
# EXPOSE 8080
# EXPOSE 4000
#
# ENV REPLACE_OS_VARS=true \
# PORT=4000
#
# #Change user
# USER default
#command to run our application
CMD drinkly_releases/bin/drinkly_linux start