mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-01-10 18:06:27 +02:00
fix(docker): use alpine 3.20 instead of 3.21 so prisma can find openssl
context: https://github.com/nodejs/docker-node/issues/2175#issuecomment-2530130523
This commit is contained in:
parent
270fb21154
commit
addd5e896c
@ -1,6 +1,6 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
FROM node:18-alpine AS builder
|
FROM node:22-alpine3.20 AS builder
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
# install python etc so node-gyp works for the optional dependencies
|
# install python etc so node-gyp works for the optional dependencies
|
||||||
RUN apk add --no-cache make gcc g++ python3
|
RUN apk add --no-cache make gcc g++ python3
|
||||||
@ -13,7 +13,7 @@ RUN chmod +x ./scripts/start.sh
|
|||||||
RUN CI=true pnpm install --prod --frozen-lockfile
|
RUN CI=true pnpm install --prod --frozen-lockfile
|
||||||
COPY --link . .
|
COPY --link . .
|
||||||
|
|
||||||
FROM node:18-alpine AS runner
|
FROM node:22-alpine3.20 AS runner
|
||||||
RUN apk --no-cache add curl \
|
RUN apk --no-cache add curl \
|
||||||
&& adduser --disabled-password --home /home/container container \
|
&& adduser --disabled-password --home /home/container container \
|
||||||
&& mkdir /app \
|
&& mkdir /app \
|
||||||
|
Loading…
Reference in New Issue
Block a user