Create placeholder .env.local in builder stage for Docker
This commit is contained in:
parent
614619ca4f
commit
001906ea3c
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,9 @@ RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||||
COPY package.json pnpm-lock.yaml ./
|
COPY package.json pnpm-lock.yaml ./
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# Create placeholder .env.local if not exists (needed for prod build)
|
||||||
|
RUN test -f .env.local || echo "# placeholder" > .env.local
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue