From 9c762a7400cee9dfe44ba81db0479686e5c64751 Mon Sep 17 00:00:00 2001 From: liuwen Date: Sat, 21 Sep 2024 21:46:30 +0800 Subject: [PATCH] fix ENV in dockerfile.data --- deepnote/data/Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/deepnote/data/Dockerfile b/deepnote/data/Dockerfile index c37ba07..9603a5a 100644 --- a/deepnote/data/Dockerfile +++ b/deepnote/data/Dockerfile @@ -38,12 +38,16 @@ ENV PATH="/root/work/bin:${PATH}" # Set working directory WORKDIR /root/work -RUN python -m venv --system-site-packages ~/venv +# RUN python -m venv --system-site-packages ~/venv -ENV SHELL=/bin/bash \ - LC_ALL=en_US.UTF-8 \ - LANG=en_US.UTF-8 \ - LANGUAGE=en_US.UTF-8 +ENV VIRTUAL_ENV=/root/work/venv +RUN python -m venv $VIRTUAL_ENV +ENV PATH="$VIRTUAL_ENV/bin:$PATH" + +ENV SHELL=/bin/bash +ENV LC_ALL=en_US.UTF-8 +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US.UTF-8 RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \ locale-gen