Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
liuwen committed Sep 21, 2024
1 parent c774efc commit dd7491c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions deepnote/data/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG FROM_PYTHON_VERSION=3.11
ARG DEBIAN_VERSION=bookworm
FROM python:${FROM_PYTHON_VERSION}-slim-${DEBIAN_VERSION}
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Switch to root user
USER root
Expand Down Expand Up @@ -37,7 +37,7 @@ WORKDIR /root/work

ENV VIRTUAL_ENV=/root/work/venv
RUN python -m venv $VIRTUAL_ENV
ENV PATH="/root/work/bin:$VIRTUAL_ENV/bin:$PATH"
ENV PATH="/root/work/bin:$VIRTUAL_ENV/bin:${PATH}"

ENV SHELL=/bin/bash
ENV LC_ALL=en_US.UTF-8
Expand All @@ -48,11 +48,11 @@ RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen

# Copy and install base packages
COPY ../basepkgs.txt .
COPY basepkgs.txt .
RUN . venv/bin/activate && pip install -r basepkgs.txt && rm basepkgs.txt

# Copy and install image-specific requirements
COPY requirements.txt .
COPY data/requirements.txt .
RUN . venv/bin/activate && pip install -r requirements.txt && rm requirements.txt

# Activate virtual environment in bash
Expand Down
8 changes: 4 additions & 4 deletions deepnote/llm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG FROM_PYTHON_VERSION=3.11
ARG DEBIAN_VERSION=bookworm
FROM python:${FROM_PYTHON_VERSION}-slim-${DEBIAN_VERSION}
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Switch to root user
USER root
Expand Down Expand Up @@ -58,11 +58,11 @@ RUN python -m venv venv \
&& rm -rf ~/.cache/pip

# Copy and install base packages
COPY ../basepkgs.txt .
COPY basepkgs.txt .
RUN . venv/bin/activate && pip install -r basepkgs.txt && rm basepkgs.txt

# Copy and install image-specific requirements
COPY requirements.txt .
COPY llm/requirements.txt .
RUN . venv/bin/activate && pip install -r requirements.txt && rm requirements.txt

ENV SHELL=/bin/bash
Expand All @@ -74,7 +74,7 @@ RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen

ENV VIRTUAL_ENV=/root/work/venv
ENV PATH="/root/work/bin:$VIRTUAL_ENV/bin:$PATH"
ENV PATH="/root/work/bin:$VIRTUAL_ENV/bin:${PATH}"

SHELL ["/bin/bash", "-c"]

Expand Down

0 comments on commit dd7491c

Please sign in to comment.