Skip to content
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

38 lines (26 sloc) 735 Bytes
FROM elixir:1.8 as builder
RUN mix local.rebar --force && \
mix local.hex --force
COPY mix.* /app/
RUN mix deps.get --only prod
RUN mix deps.compile
FROM node:10.9 as frontend
COPY assets/package*.json assets/yarn.lock /app/
COPY --from=builder /app/deps/phoenix /deps/phoenix
COPY --from=builder /app/deps/phoenix_html /deps/phoenix_html
COPY --from=builder /app/deps/phoenix_live_view /deps/phoenix_live_view
RUN npm install -g yarn && yarn install
COPY assets /app
RUN npm run deploy
FROM builder as releaser
ARG sha
ENV SHA=${sha}
ARG cookie
ENV COOKIE=${cookie}
COPY --from=frontend /priv/static /app/priv/static
COPY . /app/
RUN mix phx.digest
RUN mix release --env=prod
You can’t perform that action at this time.