From e416c5c7d7c26ddbed56add0b8f405589d26215a Mon Sep 17 00:00:00 2001 From: Rongrong <15956627+Rongronggg9@users.noreply.github.com> Date: Mon, 28 Mar 2022 04:59:36 +0800 Subject: [PATCH] make docker build caching take effect --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 61e6cf6..e5d5883 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,10 @@ FROM python:3.9-slim WORKDIR /app -COPY . /app +COPY requirements.txt /app RUN pip install --no-cache-dir --trusted-host pypi.python.org -r /app/requirements.txt +COPY . /app + CMD ["python", "-u", "SlashBot.py"] \ No newline at end of file