mirror of
https://github.com/remvze/moodist.git
synced 2026-02-28 00:53:13 +08:00
Make Dockerfile compatible with podman
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user