* initial phase * remove pagefind * phase 2 * restyle blog post pages, markdown rendering, pagination, and social link components. * use dark-plus theme for markdown code * update base layout and header components, and update the remote deployment directory * use expressive code for code styling * adjust inline code style * format code * re-add pagefind * add sidebar with dev qotd * add sidebar component with dynamic quote fetching and caching * add Docker setup with Dockerfile, docker-compose, and dockerignore for the Astro site * integrate Docker Compose with Traefik proxy and remove the legacy PowerShell deployment script
18 lines
263 B
Docker
18 lines
263 B
Docker
# Stage 1: Build
|
|
FROM node:22-alpine AS build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# Stage 2: Serve
|
|
FROM joseluisq/static-web-server:2-alpine
|
|
|
|
ENV SERVER_ROOT=/public
|
|
ENV SERVER_PORT=80
|
|
|
|
COPY --from=build /app/dist /public
|