diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 69c865a6..0c8f9abe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -242,8 +242,9 @@ package-app: script: &release-script - mix local.hex --force - mix local.rebar --force - - mix deps.get - - mix phx.digest + - mix deps.get --only-prod + - mix compile + - mix phx.digest.clean --all && \ - mix release --path release/mobilizon - cd release/mobilizon && ln -s lib/mobilizon-*/priv priv && cd ../../ - du -sh release/ diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index c9ec2418..2a55efba 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -30,7 +30,7 @@ COPY rel ./rel COPY support ./support COPY --from=assets ./priv/static ./priv/static -RUN mix phx.digest \ +RUN mix phx.digest.clean --all \ && mix release # Finally setup the app