fix(build): add rust and cargo dependency to builder image
fixes #1 Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
		
							parent
							
								
									2a8ee4cd1e
								
							
						
					
					
						commit
						92146cd3dc
					
				| @ -33,3 +33,6 @@ npm-debug.log | |||||||
| # this depending on your deployment strategy. | # this depending on your deployment strategy. | ||||||
| /priv/static/ | /priv/static/ | ||||||
| .idea | .idea | ||||||
|  | /native/ketbin_utils_syntax/target | ||||||
|  | /native/ketbin_utils_syntax/.cargo | ||||||
|  | .elixir_ls | ||||||
| @ -1,7 +1,7 @@ | |||||||
| FROM elixir:alpine AS build | FROM elixir:alpine AS build | ||||||
| 
 | 
 | ||||||
| # install build dependencies | # 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 | # prepare build dir | ||||||
| WORKDIR /app | WORKDIR /app | ||||||
| @ -25,6 +25,7 @@ RUN npm --prefix ./assets ci --progress=false --no-audit --loglevel=error | |||||||
| COPY priv priv | COPY priv priv | ||||||
| COPY assets assets | COPY assets assets | ||||||
| COPY lib lib | COPY lib lib | ||||||
|  | COPY native native | ||||||
| RUN npm run --prefix ./assets deploy | RUN npm run --prefix ./assets deploy | ||||||
| RUN mix phx.digest | RUN mix phx.digest | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user