From 327eebcf3f410ca5d4c52fa8af91172cec6cf022 Mon Sep 17 00:00:00 2001 From: Ice-Hazymoon Date: Mon, 28 Oct 2024 22:04:50 +0900 Subject: [PATCH] Update Dockerfile fix: `failed to solve: source can't be a git ref for COPY` --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e933c468..0ded72a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,9 @@ FROM base AS api WORKDIR /app COPY --from=build /prod/api /app -COPY --from=build /app/.git /app/.git +COPY --from=build /app/.git/logs/HEAD /app/.git/logs/HEAD +COPY --from=build /app/.git/HEAD /app/.git/HEAD +COPY --from=build /app/.git/config /app/.git/config EXPOSE 9000 -CMD [ "node", "src/cobalt" ] \ No newline at end of file +CMD [ "node", "src/cobalt" ]