fix(build): add rust and cargo dependency to builder image

fixes #1

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
Amogh Lele 2021-08-17 03:22:52 +05:30
parent 2a8ee4cd1e
commit 92146cd3dc
No known key found for this signature in database
GPG Key ID: ED5C54FBBB920E51
2 changed files with 6 additions and 2 deletions

View File

@ -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
.idea
/native/ketbin_utils_syntax/target
/native/ketbin_utils_syntax/.cargo
.elixir_ls

View File

@ -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