~mika/www.m1kadev.nl

www.m1kadev.nl/Dockerfile -rw-r--r-- 759 bytes
e089bf6d — m1ka new readme 4 hours ago
                                                                                
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
# [[ META-BUILDER ]]

FROM alpine:3 AS kethel
RUN apk add --no-cache elixir git tzdata nodejs npm
RUN ln -s /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime

# fetch deps
WORKDIR /usr/local/app
WORKDIR "/usr/local/app/kethel"
COPY kethel ./
RUN npm i

# build www.m1kadev.nl
WORKDIR /usr/local/app

COPY rss ./rss
COPY static ./static
COPY favicon.ico .

COPY templates ./templates
COPY bricks ./bricks
COPY styles ./styles

COPY scripts ./scripts
COPY pages ./pages
COPY thoughts ./thoughts

COPY .git /.git

WORKDIR "/usr/local/app/kethel"
RUN mix deps.get
RUN mix compile.rambo

RUN mix run main.exs -- ..

# [[ SERVER ]]
FROM nginx:mainline AS server

COPY --from=kethel /usr/local/app/build /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf