mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-23 23:11:37 +08:00
chore: fix openssl
This commit is contained in:
@ -3,7 +3,7 @@ FROM node:18-alpine AS base
|
||||
# Install dependencies only when needed
|
||||
FROM base AS deps
|
||||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
|
||||
RUN apk add --no-cache libc6-compat openssl1.1-compat
|
||||
RUN apk add --no-cache libc6-compat openssl openssl-dev
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
@ -24,7 +24,7 @@ WORKDIR /app
|
||||
ENV NODE_ENV production
|
||||
|
||||
# Install OpenSSL for Prisma in production
|
||||
RUN apk add --no-cache openssl1.1-compat
|
||||
RUN apk add --no-cache openssl
|
||||
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nextjs
|
||||
|
Reference in New Issue
Block a user