feat: dockerfile

This commit is contained in:
2026-03-08 00:40:21 +01:00
parent c29b51d2d1
commit a2fd05c144
2 changed files with 32 additions and 0 deletions

11
.dockerignore Normal file
View File

@@ -0,0 +1,11 @@
.git
.gitignore
node_modules
.env
.env.*
.wwebjs_auth
.wwebjs_cache
coverage
dist
out
.wwebjs*

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM oven/bun:1 AS base
WORKDIR /app
ENV NODE_ENV=production \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
RUN apt-get update && apt-get install -y --no-install-recommends \
chromium \
ca-certificates \
fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile --production
COPY . .
EXPOSE 3000
CMD ["bun", "run", "src/index.ts"]