Skip to content

Commit 293f397

Browse files
jamshaleswcurran
andauthored
Switch to COPY commands in dockerfiles (openwallet-foundation#3389)
Signed-off-by: jamshale <[email protected]> Co-authored-by: Stephen Curran <[email protected]>
1 parent f63e294 commit 293f397

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM python:${python_version}-slim-bullseye AS build
33

44
WORKDIR /src
55

6-
ADD . .
6+
COPY . .
77

88
RUN pip install --no-cache-dir poetry
99
RUN poetry build

docker/Dockerfile.bdd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ FROM faber-alice-demo
44
RUN pip3 install --no-cache-dir -r demo/requirements.behave.txt
55

66
WORKDIR ./demo
7-
ADD demo/multi_ledger_config_bdd.yml ./demo/multi_ledger_config.yml
7+
COPY demo/multi_ledger_config_bdd.yml ./demo/multi_ledger_config.yml
88
RUN chmod a+w .
99
ENTRYPOINT ["behave"]

docker/Dockerfile.demo

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ RUN mkdir -p bin && curl -L -o bin/jq \
99
https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && \
1010
chmod ug+x bin/jq
1111

12-
# Add and install Aries Agent code
12+
# Copy and install Aries Agent code
1313
RUN pip install --no-cache-dir poetry
1414

15-
ADD README.md pyproject.toml poetry.lock ./
15+
COPY README.md pyproject.toml poetry.lock ./
1616

1717
ARG all_extras=0
1818
RUN if ! [ -z ${all_extras} ]; then poetry install --no-root --no-directory --all-extras; else poetry install --no-root --no-directory -E "didcommv2"; fi
1919

20-
ADD acapy_agent ./acapy_agent
21-
ADD scripts ./scripts
20+
COPY acapy_agent ./acapy_agent
21+
COPY scripts ./scripts
2222

2323
RUN pip3 install --no-cache-dir -e .
2424

2525
RUN mkdir demo && chown -R aries:aries demo && chmod -R ug+rw demo
2626

27-
# Add and install demo code
28-
ADD demo/requirements.txt ./demo/requirements.txt
27+
# Copy and install demo code
28+
COPY demo/requirements.txt ./demo/requirements.txt
2929
RUN pip3 install --no-cache-dir -r demo/requirements.txt
3030

31-
ADD demo ./demo
31+
COPY demo ./demo
3232

3333
ENTRYPOINT ["bash", "-c", "demo/ngrok-wait.sh \"$@\"", "--"]

docker/Dockerfile.run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ RUN apt-get update && apt-get install -y curl && apt-get clean
1515
RUN pip install --no-cache-dir poetry
1616

1717
RUN mkdir -p acapy_agent && touch acapy_agent/__init__.py
18-
ADD pyproject.toml poetry.lock README.md ./
18+
COPY pyproject.toml poetry.lock README.md ./
1919
RUN mkdir -p log && chmod -R ug+rw log
2020

2121
ARG all_extras=0
2222
RUN if ! [ -z ${all_extras} ]; then poetry install --all-extras; else poetry install -E "didcommv2"; fi
2323

24-
ADD . .
24+
COPY . .
2525

2626
ENTRYPOINT ["/bin/bash", "-c", "poetry run aca-py \"$@\"", "--"]

docker/Dockerfile.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ WORKDIR /usr/src/app
1111

1212
RUN pip install --no-cache-dir poetry
1313

14-
ADD ./README.md pyproject.toml ./poetry.lock ./
14+
COPY ./README.md pyproject.toml ./poetry.lock ./
1515
RUN mkdir acapy_agent && touch acapy_agent/__init__.py
1616

1717
ARG all_extras=0
1818
RUN if ! [ -z ${all_extras} ]; then poetry install --no-directory --all-extras --with=dev; else poetry install --no-directory -E "didcommv2" --with=dev; fi
1919

20-
ADD . .
20+
COPY . .
2121

2222
ENTRYPOINT ["/bin/bash", "-c", "poetry run pytest \"$@\"", "--"]

0 commit comments

Comments
 (0)