From c5005ccdae815f89e4c3fa688781132c044b4694 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 22 Jul 2021 15:57:31 +0200 Subject: [PATCH] Revert "Merge branch 'setop-patch-dockerbuild' into 'master'" This reverts merge request !978 --- docker/production/Dockerfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index 4f561c108..46447aaf8 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -1,13 +1,11 @@ -# syntax=docker/dockerfile:1.2 - # First build the application assets FROM node:16-alpine as assets RUN apk add --no-cache python3 build-base libwebp-tools bash imagemagick ncurses WORKDIR /build COPY js . -RUN --mount=type=cache,target=/root/.cache yarn install -RUN yarn run build +RUN yarn install \ + && yarn run build # Then, build the application binary FROM elixir:1.12-alpine AS builder @@ -26,9 +24,6 @@ COPY config/config.exs config/prod.exs ./config/ COPY config/docker.exs ./config/runtime.exs COPY rel ./rel COPY support ./support - -RUN mix compile - COPY --from=assets ./priv/static ./priv/static RUN mix phx.digest \