blog/Dockerfile
Mohamad 64409964a7 weeee💃
2025-02-04 10:37:06 +01:00

12 lines
290 B
Docker

# Base stage for building the static files
FROM node:lts AS base
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Runtime stage for serving the application
FROM nginx:mainline-alpine-slim AS runtime
COPY --from=base ./app/dist /usr/share/nginx/html
EXPOSE 80