Make Dockerfile compatible with podman

This commit is contained in:
Jef Roelandt 2024-04-19 20:41:15 +02:00
parent 4b5456a51d
commit 42d3bd9e8c

View file

@ -1,11 +1,11 @@
FROM node:20-alpine3.18 AS build FROM docker.io/node:20-alpine3.18 AS build
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install
COPY . . COPY . .
RUN npm run build RUN npm run build
FROM nginx:alpine AS runtime FROM docker.io/nginx:alpine AS runtime
COPY ./docker/nginx/nginx.conf /etc/nginx/nginx.conf COPY ./docker/nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html