Adpat frontend to build docker image with buildah
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user