From 7cc2a029fc38e9aa063d31d7ef29154fa20e127f Mon Sep 17 00:00:00 2001 From: Justin Xiao Date: Tue, 26 Sep 2023 14:47:05 +0800 Subject: [PATCH] build: add docker setting --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4e8433d..e8ae5ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,7 @@ RUN apt-get update && apt-get upgrade -y \ # Copy only requirements, to cache them in docker layer WORKDIR $PYSETUP_PATH -COPY ./poetry.lock ./pyproject.toml /app/ +COPY ./poetry.lock ./pyproject.toml ./ # Project initialization: # hadolint ignore=SC2046 @@ -69,6 +69,7 @@ COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH RUN poetry install --no-dev # will become mountpoint of our code +COPY . /app WORKDIR /app EXPOSE 5000