From c7cf0f0b8183a544610427024e8e4e4ef1056cb5 Mon Sep 17 00:00:00 2001 From: Martin Rauscher Date: Sat, 28 Jan 2023 23:00:16 +0100 Subject: [PATCH] Use COPY instead of ADD in Dockerfile As a template this should make of good defaults and as ADD has some magic behaviors it is now generally recommended to use COPY if you don't need to add tarballs or other advanced features --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 888a8da..9988f14 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,20 +8,20 @@ RUN apt-get update && apt-get install -y git # Install python packages RUN pip3 install --upgrade pip -ADD requirements.txt requirements.txt +COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt # We add the banana boilerplate here -ADD server.py . +COPY server.py . # Add your model weight files # (in this case we have a python script) -ADD download.py . +COPY download.py . RUN python3 download.py # Add your custom app code, init() and inference() -ADD app.py . +COPY app.py . EXPOSE 8000