Skip to content

Commit

Permalink
Fix Dockerfile and location of .dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
choidabom committed Oct 10, 2024
1 parent 42d665d commit 06ea66a
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 7 deletions.
File renamed without changes.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ RUN apk add --no-cache \
freetype \
harfbuzz \
ca-certificates \
ttf-freefont
ttf-freefont \
wget \
unzip

# Download Korean font for Puppeteer
RUN mkdir /usr/share/fonts/nanumfont && \
Expand All @@ -34,6 +36,7 @@ ENV PUPPETEER_EXECUTABLE_PATH /usr/bin/chromium-browser
FROM base AS build
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN sed -i 's/"prepare": "husky install"/"prepare": ""/' ./package.json
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm backend db:generate
RUN pnpm backend build
Expand Down
4 changes: 2 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "@codepair/backend",
"version": "0.1.14",
"description": "CodePair Backend",
"type": "module",
"author": "yorkie-team",
"license": "Apache-2.0",
"scripts": {
Expand Down Expand Up @@ -34,6 +33,7 @@
"@langchain/core": "^0.1.18",
"@langchain/ollama": "^0.0.4",
"@langchain/openai": "^0.3.2",
"@nestjs/cli": "^10.4.5",
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.0.0",
Expand All @@ -44,6 +44,7 @@
"@prisma/client": "^5.8.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"express": "^4.21.1",
"html-pdf-node": "^1.0.8",
"langchain": "^0.1.9",
"markdown-it": "^14.1.0",
Expand All @@ -55,7 +56,6 @@
"rxjs": "^7.8.1"
},
"devDependencies": {
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
"@types/express": "^4.17.17",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "yorkie-team",
"license": "Apache-2.0",
"scripts": {
"prepare": "husky .husky",
"prepare": "husky install",
"preinstall": "npx only-allow pnpm",
"frontend": "pnpm --filter=frontend",
"backend": "pnpm --filter=backend",
Expand Down
55 changes: 52 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 06ea66a

Please sign in to comment.