Files
bestofpb/frontend/Dockerfile
Scott Hatlen e3941089e1 initial commit
2025-11-05 09:06:54 -08:00

13 lines
290 B
Docker

# --- Build Stage ---
FROM node:20-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build
# --- Serve Stage ---
FROM nginx:alpine AS serve
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]