Skip to content

Commit

Permalink
Update Dockerfile to include additional TypeScript definition files
Browse files Browse the repository at this point in the history
- Amend the Dockerfile to copy `next-env.d.ts` and `svgr.d.ts` files along with the existing `next.config.js` and `tsconfig.json`. This ensures that all necessary TypeScript definition files are available in the Docker image, supporting proper type-checking and configuration during the build process.
- These changes aim to enhance build stability and maintain consistency across development and production environments by ensuring all relevant configuration files are included in the Docker build context.

This adjustment ensures that the Docker environment mirrors the local development setup more closely, potentially reducing issues related to environment discrepancies.
  • Loading branch information
seheon99 committed Jul 14, 2024
1 parent 27d7a63 commit c6b4ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apk add --no-cache libc6-compat
COPY .yarn/releases ./.yarn/releases
COPY package.json yarn.lock .yarnrc.yml ./

COPY next.config.js tsconfig.json ./
COPY next-env.d.ts next.config.js svgr.d.ts tsconfig.json ./
COPY ./public ./public
COPY ./src ./src

Expand Down

0 comments on commit c6b4ee0

Please sign in to comment.