Skip to content

Commit

Permalink
remove build context from local Dockerfile, add cche mount to cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Yavorsky committed Feb 5, 2025
1 parent 6c518ec commit f58bcfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ WORKDIR /app/

ARG NPDI_API_PORT=5000

RUN --mount=type=cache,target=/root/.cache/pip,from=pip_cache pip3 install --upgrade pip
RUN --mount=type=cache,target=/root/.cache/pip pip3 install --upgrade pip

COPY requirements/ requirements/

RUN --mount=type=cache,target=/root/.cache/pip,from=pip_cache pip3 install -r requirements/dev_unix.txt
RUN --mount=type=cache,target=/root/.cache/pip pip3 install -r requirements/dev_unix.txt
COPY . .

ENV PORT=$NPDI_API_PORT
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile.cloud
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN arch=$(arch) && \
wget ${url} && \
sed -i "s/pandas==2.2.2/${file}/" prod.txt

RUN pip install --no-cache-dir --user -r prod.txt
RUN --mount=type=cache,target=/root/.cache/pip pip install --user -r prod.txt

COPY . .

Expand Down

0 comments on commit f58bcfe

Please sign in to comment.