Compare commits
2 Commits
37d101a71e
...
e2c17b6b51
Author | SHA1 | Date | |
---|---|---|---|
e2c17b6b51 | |||
20988ac1ec |
@@ -31,8 +31,7 @@ steps:
|
||||
- mix deps.get
|
||||
- npm set cache .npm
|
||||
- npm --prefix ./assets ci --no-audit --prefer-offline
|
||||
- npm run --prefix ./assets deploy
|
||||
- mix do phx.digest, gettext.extract
|
||||
- mix do phx.digest, gettext.extract, assets.deploy
|
||||
- mix test.all
|
||||
|
||||
- name: build and publish stable
|
||||
|
@@ -25,13 +25,12 @@ RUN npm --prefix ./assets ci --progress=false --no-audit --loglevel=error
|
||||
COPY lib lib
|
||||
COPY priv priv
|
||||
COPY assets assets
|
||||
RUN npm run --prefix ./assets deploy
|
||||
RUN mix do phx.digest, gettext.extract
|
||||
|
||||
# compile and build release
|
||||
# uncomment COPY if rel/ exists
|
||||
# COPY rel rel
|
||||
RUN mix do compile, release
|
||||
RUN mix do assets.deploy, compile, release
|
||||
|
||||
# prepare release image
|
||||
FROM alpine:latest AS app
|
||||
@@ -43,6 +42,8 @@ WORKDIR /app
|
||||
|
||||
RUN chown nobody:nobody /app
|
||||
|
||||
ENV MIX_ENV=prod
|
||||
|
||||
USER nobody:nobody
|
||||
|
||||
COPY --from=build --chown=nobody:nobody /app/_build/prod/rel/cannery ./
|
||||
|
Reference in New Issue
Block a user