- Simplify Dockerfiles to use single-stage pnpm install - Add openssl to server Alpine image for Prisma - Remove obsolete version from docker-compose.yml - Fix Dockerfile.node copy paths for monorepo root context - Add .dockerignore at monorepo root - Create empty public dir for Next.js standalone build Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
14 lines
432 B
Text
14 lines
432 B
Text
# Hardhat node for local blockchain
|
|
FROM node:20-alpine
|
|
WORKDIR /app
|
|
RUN apk add --no-cache git
|
|
COPY apps/contracts/package.json ./
|
|
RUN npm install
|
|
COPY apps/contracts/contracts ./contracts
|
|
COPY apps/contracts/test ./test
|
|
COPY apps/contracts/hardhat.config.ts ./
|
|
COPY apps/contracts/ignition ./ignition
|
|
COPY apps/contracts/tsconfig.json ./
|
|
RUN npx hardhat compile
|
|
EXPOSE 8545
|
|
CMD ["npx", "hardhat", "node", "--hostname", "0.0.0.0"]
|