mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-11 13:19:49 +02:00
Update dockerfile versions
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
# npm packages
|
# npm packages
|
||||||
FROM node:20-alpine AS builder
|
FROM node:24-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./website/package.json /app
|
COPY ./website/package.json /app
|
||||||
|
|
||||||
|
RUN npm update -g npm
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Build stage
|
# Build stage
|
||||||
FROM node:20-alpine AS gen
|
FROM node:24-alpine AS gen
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=builder /app /app
|
COPY --from=builder /app /app
|
||||||
@@ -15,7 +17,7 @@ COPY ./website /app
|
|||||||
RUN npm run generate
|
RUN npm run generate
|
||||||
|
|
||||||
# Serve stage
|
# Serve stage
|
||||||
FROM nginx:alpine3.17-slim
|
FROM nginx:alpine3.22-slim
|
||||||
|
|
||||||
# Copy built files from Vite's dist folder
|
# Copy built files from Vite's dist folder
|
||||||
COPY --from=gen /app/.output/public /usr/share/nginx/html
|
COPY --from=gen /app/.output/public /usr/share/nginx/html
|
||||||
|
Reference in New Issue
Block a user