Skip to content

Commit f58bcfe

Browse files
committed
remove build context from local Dockerfile, add cche mount to cloud
1 parent 6c518ec commit f58bcfe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ WORKDIR /app/
2323

2424
ARG NPDI_API_PORT=5000
2525

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

2828
COPY requirements/ requirements/
2929

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

3333
ENV PORT=$NPDI_API_PORT

backend/Dockerfile.cloud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN arch=$(arch) && \
2828
wget ${url} && \
2929
sed -i "s/pandas==2.2.2/${file}/" prod.txt
3030

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

3333
COPY . .
3434

0 commit comments

Comments
 (0)