diff --git a/.dockerignore b/.dockerignore index c55d324..54e610a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -32,4 +32,7 @@ npm-debug.log # we ignore priv/static. You may want to comment # this depending on your deployment strategy. /priv/static/ -.idea \ No newline at end of file +.idea +/native/ketbin_utils_syntax/target +/native/ketbin_utils_syntax/.cargo +.elixir_ls \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 366e1be..296edf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM elixir:alpine AS build # install build dependencies -RUN apk add --no-cache build-base npm git curl py-pip +RUN apk add --no-cache build-base npm git curl py-pip rust cargo # prepare build dir WORKDIR /app @@ -25,6 +25,7 @@ RUN npm --prefix ./assets ci --progress=false --no-audit --loglevel=error COPY priv priv COPY assets assets COPY lib lib +COPY native native RUN npm run --prefix ./assets deploy RUN mix phx.digest