Files
blog/Dockerfile
2025-01-13 23:01:22 +00:00

13 lines
298 B
Docker

# Base stage for building the static files
FROM node:lts AS base
WORKDIR /app
COPY package*.json ./
COPY yarn.lock ./
RUN yarn
COPY . .
RUN yarn 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