File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ RUN apt update && \
1414 curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
1515 echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" > /etc/apt/sources.list.d/nodesource.list && \
1616 apt update && \
17- apt install -y --no-install-recommends nodejs yarnpkg && \
18- apt clean -y && rm -rf /var/lib/apt/lists/*
17+ apt install -y --no-install-recommends nodejs && \
18+ apt clean -y && rm -rf /var/lib/apt/lists/* && \
19+ npm install -g yarn
1920
2021# prepare build dir
2122RUN mkdir /app
@@ -36,7 +37,7 @@ RUN mix deps.compile
3637
3738# build assets
3839COPY assets assets
39- RUN cd assets && yarnpkg install && yarnpkg run webpack --mode production
40+ RUN cd assets && yarn install && yarn run webpack --mode production
4041RUN mix phx.digest
4142
4243# build project
You can’t perform that action at this time.
0 commit comments