@@ 5,15 5,13 @@ 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"
-COPY pull-hljs.sh .
-RUN ./pull-hljs.sh
+WORKDIR /usr/local/app
WORKDIR "/usr/local/app/kethel"
COPY kethel ./
RUN npm i
# build www.m1kadev.nl
-WORKDIR "/usr/local/app"
+WORKDIR /usr/local/app
COPY rss ./rss
COPY static ./static
@@ 27,14 25,13 @@ COPY scripts ./scripts
COPY pages ./pages
COPY thoughts ./thoughts
-COPY .git ./
+COPY .git /.git
WORKDIR "/usr/local/app/kethel"
RUN mix deps.get
RUN mix compile.rambo
RUN mix run main.exs -- ..
-WORKDIR "/usr/local/app"
# [[ SERVER ]]
FROM nginx:mainline AS server