Skip to content

Commit

Permalink
chore: fix api Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcfps committed Jun 4, 2024
1 parent f21963d commit 6b59d92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ COPY . .
RUN rush install --to @refly/api
RUN rush build --to @refly/api
RUN rush deploy --overwrite
RUN cd common/deploy && node create-link.js create
RUN cd common/deploy/apps/api && rushx build
RUN node common/deploy/create-links.js create
RUN cp -r apps/api/node_modules/.bin common/deploy/apps/api/node_modules/
RUN cd common/deploy/apps/api && npm run build

# Runner image
FROM base AS runner
Expand Down
2 changes: 1 addition & 1 deletion common/config/rush/deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*
* The default value is false.
*/
// "includeNpmIgnoreFiles": true,
"includeNpmIgnoreFiles": true,

/**
* Specify how links (symbolic links, hard links, and/or NTFS junctions) will be created in the deployed folder:
Expand Down

0 comments on commit 6b59d92

Please sign in to comment.