change base
This commit is contained in:
parent
a2c340cd15
commit
bef6bd691d
12
Dockerfile
12
Dockerfile
@ -1,7 +1,9 @@
|
|||||||
##### DEPENDENCIES
|
FROM node:18-alpine AS base
|
||||||
|
|
||||||
FROM --platform=linux/amd64 node:20-alpine AS deps
|
# Install dependencies only when needed
|
||||||
RUN apk add --no-cache libc6-compat openssl
|
##### DEPENDENCIES
|
||||||
|
FROM base AS deps
|
||||||
|
RUN apk add --no-cache libc6-compat
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install Prisma Client - remove if not using Prisma
|
# Install Prisma Client - remove if not using Prisma
|
||||||
@ -21,7 +23,7 @@ RUN \
|
|||||||
|
|
||||||
##### BUILDER
|
##### BUILDER
|
||||||
|
|
||||||
FROM --platform=linux/amd64 node:20-alpine AS builder
|
FROM base AS builder
|
||||||
ARG DATABASE_URL
|
ARG DATABASE_URL
|
||||||
ARG NEXT_PUBLIC_CLIENTVAR
|
ARG NEXT_PUBLIC_CLIENTVAR
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@ -39,7 +41,7 @@ RUN \
|
|||||||
|
|
||||||
##### RUNNER
|
##### RUNNER
|
||||||
|
|
||||||
FROM --platform=linux/amd64 gcr.io/distroless/nodejs20-debian12 AS runner
|
FROM base AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
Loading…
x
Reference in New Issue
Block a user