Fix docker build by doing the asset building in a subfolder
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
b884d88ac3
commit
ef358bef6e
@ -2,8 +2,9 @@
|
|||||||
FROM node:16-alpine as assets
|
FROM node:16-alpine as assets
|
||||||
|
|
||||||
RUN apk add --no-cache python3 build-base libwebp-tools bash imagemagick ncurses
|
RUN apk add --no-cache python3 build-base libwebp-tools bash imagemagick ncurses
|
||||||
|
WORKDIR /build
|
||||||
COPY js .
|
COPY js .
|
||||||
|
RUN ls -a
|
||||||
RUN yarn install \
|
RUN yarn install \
|
||||||
&& yarn run build
|
&& yarn run build
|
||||||
|
|
||||||
@ -24,7 +25,7 @@ COPY config/config.exs config/prod.exs ./config/
|
|||||||
COPY config/docker.exs ./config/runtime.exs
|
COPY config/docker.exs ./config/runtime.exs
|
||||||
COPY rel ./rel
|
COPY rel ./rel
|
||||||
COPY support ./support
|
COPY support ./support
|
||||||
COPY --from=assets ./priv/static ./priv/static
|
COPY --from=assets ./build/priv/static ./priv/static
|
||||||
|
|
||||||
RUN mix phx.digest \
|
RUN mix phx.digest \
|
||||||
&& mix release
|
&& mix release
|
||||||
|
Loading…
Reference in New Issue
Block a user