From d736814261ca096b388cd33a951de8592838d7d1 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 6 Nov 2023 23:58:20 +0800 Subject: [PATCH] Add CI --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index dec59a6..c83c2c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,8 @@ ENV POETRY_NO_INTERACTION=1 \ WORKDIR /app COPY pyproject.toml poetry.lock ./ +COPY src/ ./src +COPY main.py ./ RUN touch README.md RUN poetry install @@ -20,8 +22,7 @@ ENV VIRTUAL_ENV=/app/.venv \ PATH="/app/.venv/bin:$PATH" COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV} - -COPY src/ ./src -COPY main.py ./ +COPY --from=builder /app/src/ /app/src +COPY --from=builder /app/main.py /app/main.py ENTRYPOINT ["python", "-m", "main.py"] \ No newline at end of file