ع
Size: a a a
ع
SK
SK
РП
AD
SK
ع
РП
ع
AB
AB
ع
ML
M
remote: npm ERR! code ENOENT
remote: npm ERR! syscall access
remote: npm ERR! path /tmp/build_4a111f9a/assets/node_modules/phoenix
remote: npm ERR! errno -2
remote: npm ERR! enoent ENOENT: no such file or directory, access '/tmp/build_4a111f9a/assets/node_modules/phoenix'
remote: npm ERR! enoent This is related to npm not being able to find a file.
remote: npm ERR! enoent
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /app/.npm/_logs/2021-01-18T18_52_23_088Z-debug.log
remote: ! Push rejected, failed to compile Phoenix app.
remote:
remote: ! Push failed
node_version=14.15.3
npm_version=6.14.9
assets_path=assets/
clean_cache=true
elixir_version=1.11.2
erlang_version=23.2.2
always_rebuild=true
B
B
remote: npm ERR! enoent ENOENT: no such file or directory, access '/tmp/build_4a111f9a/assets/
“ع
M
ع
B
FROM elixir:1.10.4-alpine AS build
# install build dependencies
RUN apk add --no-cache build-base npm git python
# prepare build dir
WORKDIR /app
# install hex + rebar
RUN mix local.hex --force && \
mix local.rebar --force
# set build ENV
ENV MIX_ENV=prod
# install mix dependencies
COPY mix.exs mix.lock ./
COPY config config
RUN mix do deps.get, deps.compile
# build assets
COPY assets/package.json assets/package-lock.json ./assets/
RUN npm --prefix ./assets ci --progress=false --no-audit --loglevel=error
COPY priv priv
COPY assets assets
RUN npm run --prefix ./assets deploy
RUN mix phx.digest
# compile and build release
COPY lib lib
# uncomment COPY if rel/ exists
# COPY rel rel
RUN mix do compile, release
# prepare release image
FROM alpine:3.9 AS app
RUN apk add --no-cache openssl ncurses-libs
WORKDIR /app
RUN chown nobody:nobody /app
USER nobody:nobody
COPY --from=build --chown=nobody:nobody /app/_build/prod/rel/app_name ./
ENV HOME=/app
CMD ["bin/app_name", "start"]