From c83c91cbfbb3efd9af75ed03ed43bc35a6199c09 Mon Sep 17 00:00:00 2001 From: flydog98 Date: Tue, 21 Nov 2023 16:48:23 +0900 Subject: [PATCH] =?UTF-8?q?config:=20Dockerfile,=20.dockerignore=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [#90] --- packages/backend/.dockerignore | 26 ++++++++++++++++++++++++++ packages/backend/Dockerfile | 12 ++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 packages/backend/.dockerignore create mode 100644 packages/backend/Dockerfile diff --git a/packages/backend/.dockerignore b/packages/backend/.dockerignore new file mode 100644 index 0000000..f1ca1af --- /dev/null +++ b/packages/backend/.dockerignore @@ -0,0 +1,26 @@ +# 버전 관리 시스템 +.git +.gitignore + +# 노드 모듈 +node_modules + +# 로그 파일 +npm-debug.log +yarn-error.log + +# 빌드 디렉토리 +dist +build + +# 개발 도구 설정 +.editorconfig +*.env +*.env.local +*.env.development.local +*.env.test.local +*.env.production.local + +# OS 관련 파일 +.DS_Store +Thumbs.db diff --git a/packages/backend/Dockerfile b/packages/backend/Dockerfile new file mode 100644 index 0000000..215b59f --- /dev/null +++ b/packages/backend/Dockerfile @@ -0,0 +1,12 @@ +FROM node:18.17.1 + +WORKDIR /app + +COPY . . + +RUN corepack enable +RUN yarn install + +EXPOSE 8080 + +CMD ["sh", "-c", "cd packages/backend && yarn run start"]