add build-essential to base image + pip install has path as env variable

This commit is contained in:
Ruben Fiszel
2022-11-16 18:44:40 +01:00
parent 79d8071eaa
commit 9f7ed2bb88
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ FROM python:3.11.0-slim-buster
ARG APP=/usr/src/app
RUN apt-get update \
&& apt-get install -y ca-certificates wget curl git jq libprotobuf-dev libnl-route-3-dev \
&& apt-get install -y ca-certificates wget curl git jq libprotobuf-dev libnl-route-3-dev build-essential \
&& rm -rf /var/lib/apt/lists/*
RUN set -eux; \
+2 -1
View File
@@ -1427,7 +1427,7 @@ async fn handle_python_job(
let _ = write_file(job_dir, "requirements.txt", &regular.join("\n")).await?;
let mut vars = vec![];
let mut vars = vec![("PATH", path_env)];
if let Some(url) = pip_extra_index_url {
vars.push(("EXTRA_INDEX_URL", url));
}
@@ -1491,6 +1491,7 @@ async fn handle_python_job(
Command::new(python_path)
.current_dir(job_dir)
.env_clear()
.envs(vars)
.args(args)
.stdout(Stdio::piped())
.stderr(Stdio::piped())
@@ -27,7 +27,7 @@
/>
{#if !isCollapsed}
<span class={classNames('whitespace-pre ')}>
<span class={classNames('whitespace-pre truncate')}>
{$userStore?.username ?? ($superadmin ? $superadmin : '___')}
{#if $userStore?.is_admin}
<Icon data={faCrown} scale={0.6} />
@@ -23,7 +23,7 @@
/>
{#if !isCollapsed}
<span class={classNames('whitespace-pre')}> {$workspaceStore} </span>
<span class={classNames('whitespace-pre truncate')}> {$workspaceStore} </span>
{/if}
</button>