Skip to content

Commit

Permalink
fix(form): use alpine3.16 for prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Dec 12, 2023
1 parent 54ada7e commit f49edc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions formulaire/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 1. Install node dependencies only when needed
FROM node:alpine3.18 AS deps
FROM node:alpine3.16 AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY yarn.lock .yarnrc.yml ./
COPY .yarn .yarn
RUN yarn fetch --immutable && yarn cache clean

# 2. Rebuild the source code only when needed
FROM node:alpine3.18 AS builder
FROM node:alpine3.16 AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
Expand Down Expand Up @@ -42,7 +42,7 @@ RUN yarn workspaces focus --production && yarn cache clean
RUN npx prisma generate

# Production image, copy all the files and run next
FROM node:alpine3.18 AS runner
FROM node:alpine3.16 AS runner
RUN apk add --no-cache postgresql-client
WORKDIR /app
ENV NODE_ENV production
Expand Down

0 comments on commit f49edc7

Please sign in to comment.