feat: add Dockerfile and .dockerignore; update index.js to use luxon for date handling

This commit is contained in:
Fd
2026-02-19 05:08:03 +07:00
parent 09bf752a9a
commit 811253dac1
5 changed files with 47 additions and 5 deletions
+27
View File
@@ -0,0 +1,27 @@
FROM node:20-bookworm-slim
# Install dependencies for canvas
RUN apt-get update && apt-get install -y \
build-essential \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
librsvg2-dev \
&& rm -rf /var/lib/apt/lists/*
# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
WORKDIR /app
# Copy package files
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
# Install dependencies
RUN pnpm install --frozen-lockfile
# Copy application files
COPY . .
CMD ["pnpm", "start"]