chore: add policy markdown file to docker image#282
Conversation
Summary of ChangesHello @laggu, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 PR은 서버 Docker 이미지에 필요한 정책 관련 파일을 포함시키고, 개발 환경에서 사용되는 Firebase Admin SDK 파일명을 일반적인 이름으로 통일하여 배포 및 관리의 일관성을 높이는 것을 목표로 합니다. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
|
||
| COPY --from=build /fienmee/apps/server/package.json /fienmee/apps/server/package.json | ||
| COPY --from=build /fienmee/apps/server/dist /fienmee/apps/server/dist | ||
| COPY --from=build /fienmee/apps/server/public /fienmee/apps/server/dist/public |
There was a problem hiding this comment.
이 COPY 명령어는 최종 이미지에 새로운 레이어를 추가합니다. 현재 runner 단계에서 dist 디렉토리를 구성하기 위해 여러 COPY 명령(L30, L31, L32)이 사용되고 있습니다. Docker 이미지의 레이어 수를 줄이고 가독성을 높이기 위해, build 단계에서 dist 디렉토리를 완성하는 것을 고려해 보세요.
예를 들어, build 단계에서 pnpm build:server 실행 후에 관련 파일들을 dist로 복사할 수 있습니다:
# In build stage
...
RUN pnpm build:server
RUN cp -r /fienmee/apps/server/public /fienmee/apps/server/dist/
RUN cp /fienmee/apps/server/newrelic.cjs /fienmee/apps/server/dist/이렇게 하면 runner 단계에서는 dist 디렉토리 전체를 단일 COPY 명령으로 복사할 수 있어 Dockerfile이 더 효율적이고 깔끔해집니다.
policy 관련 파일을 도커 이미지에 추가합니다