Adpat frontend to build docker image with buildah

This commit is contained in:
Adrien
2026-04-09 19:36:22 +02:00
parent 8e227a9429
commit 0908355704
3 changed files with 23 additions and 6 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
# ---- Build stage ----
FROM node:20-alpine AS build
FROM docker.io/library/node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
@@ -7,7 +7,7 @@ COPY . .
RUN npm run build
# ---- Runtime stage (nginx) ----
FROM nginx:alpine
FROM docker.io/library/nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80