Docker/Language Version updates

This commit is contained in:
Mawoka
2025-10-26 12:26:12 +01:00
parent 2b0545f695
commit 9e0a3faa45
4 changed files with 1736 additions and 1462 deletions
+4 -4
View File
@@ -4,7 +4,7 @@
### Build Step
# pull the Node.js Docker image
FROM node:26-bullseye as builder
FROM node:24-trixie AS builder
# ENV API_URL=http://api:80
ENV API_URL=https://mawoka.eu
#Ah, I've noticed that!!!
@@ -27,7 +27,7 @@ COPY package*.json ./
COPY pnpm-lock.yaml ./
# run npm install in our local machine
RUN corepack enable && corepack prepare pnpm@8.14.0 --activate && pnpm i
RUN corepack enable && corepack prepare pnpm@10.14.0 --activate && pnpm i
# copy the generated modules and all other files to the container
COPY . .
@@ -37,13 +37,13 @@ RUN pnpm run build
### Serve Step
# pull the Node.js Docker image
FROM node:26-bullseye-slim
FROM node:24-trixie-slim
# change working directory
WORKDIR /app
COPY --from=builder /usr/src/app/package.json .
COPY --from=builder /usr/src/app/pnpm-lock.yaml .
RUN corepack enable && corepack prepare pnpm@8.14.0 --activate && pnpm i
RUN corepack enable && corepack prepare pnpm@10.14.0 --activate && pnpm i
# copy files from previous step
COPY --from=builder /usr/src/app/build .
COPY --from=builder /usr/src/app/node_modules ./node_modules