dockerfile changed
This commit is contained in:
@@ -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
|
||||
|
||||
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
|
||||
|
||||
CMD ["npm", "run", "start"]
|
||||
|
||||
Reference in New Issue
Block a user