Update Dockerfile

fix: `failed to solve: source can't be a git ref for COPY`
This commit is contained in:
Ice-Hazymoon 2024-10-28 22:04:50 +09:00 committed by GitHub
parent c463e3eabb
commit 327eebcf3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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" ]
CMD [ "node", "src/cobalt" ]