remove unnecessary COPY from dockerfiles
This commit is contained in:
parent
897cf68ccc
commit
39002576e2
2 changed files with 2 additions and 2 deletions
|
@ -52,10 +52,10 @@ RUN --mount=type=cache,target=/var/cache/apt,id=apt_$TARGETARCH --mount=type=tmp
|
|||
|
||||
|
||||
RUN mkdir /app
|
||||
COPY /src/requirements /app/requirements
|
||||
WORKDIR /app
|
||||
|
||||
RUN --mount=type=cache,target=/pip-cache \
|
||||
--mount=type=bind,source=/src/requirements,target=/app/requirements \
|
||||
python3.11 -m venv env && \
|
||||
. /app/env/bin/activate && \
|
||||
pip install --cache-dir /pip-cache --upgrade pip wheel && \
|
||||
|
|
|
@ -39,10 +39,10 @@ RUN --mount=type=cache,target=/var/cache/apt,id=apt_$TARGETARCH --mount=type=tmp
|
|||
|
||||
|
||||
RUN mkdir /app
|
||||
COPY /src/requirements-tileserver.txt /app/
|
||||
WORKDIR /app
|
||||
|
||||
RUN --mount=type=cache,target=/pip-cache \
|
||||
--mount=type=bind,source=/src/requirements-tileserver.txt,target=/app/requirements-tileserver.txt \
|
||||
python3.11 -m venv env && \
|
||||
. /app/env/bin/activate && \
|
||||
pip install --cache-dir /pip-cache --upgrade pip wheel && \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue