dockerfile changed

This commit is contained in:
2026-01-07 20:43:29 +01:00
parent f4eb96c4ec
commit 39ce24de91

View File

@@ -1,15 +1,27 @@
FROM mcr.microsoft.com/playwright:v1.50.0-jammy FROM node:20-bookworm
RUN apt-get update && apt-get install -y \
git \
ffmpeg \
curl \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN wget -q https://github.com/cloudflare/cloudflared/releases/download/2025.11.1/cloudflared-linux-amd64.deb \
&& dpkg -i cloudflared-linux-amd64.deb \
&& rm cloudflared-linux-amd64.deb
WORKDIR /app WORKDIR /app
COPY package*.json ./ RUN git clone https://git.waifuboard.app/ItsSkaiya/WaifuBoard.git repo
RUN npm ci RUN mv repo/docker/* . \
&& rm -rf repo
RUN npx playwright install --with-deps chromium RUN npm install
COPY . . RUN npx playwright install chromium
RUN npx playwright install-deps
EXPOSE 54322 EXPOSE 54322
CMD ["npm", "run", "start"] CMD ["npm", "run", "start"]