Skip to content

Commit

Permalink
Docker: copy only the files required for build (aeharding#1397)
Browse files Browse the repository at this point in the history
* docker: ignore e2e folder

* docker: copy only the files required for build

* copy public folder
  • Loading branch information
sharunkumar authored Apr 6, 2024
1 parent c86e703 commit 1e2c63d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ dist
android/
ios/
fastlane/
e2e/
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ COPY patches ./patches
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile --ignore-scripts

# Copy all source files
COPY . ./
COPY build.sh disable_in_app_purchases.sh index.html vite.config.ts manifest.json tsconfig.json tsconfig.node.json ./
COPY public ./public
COPY src ./src

# Build
RUN pnpm build
Expand Down

0 comments on commit 1e2c63d

Please sign in to comment.