Rename and fix screenshots
This commit is contained in:
parent
9e71ed77df
commit
e5d5819098
8 changed files with 81 additions and 18 deletions
26
screenshot/Dockerfile
Normal file
26
screenshot/Dockerfile
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
FROM node:20-slim
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends curl && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json* ./
|
||||
RUN npm install
|
||||
|
||||
# Install Chromium for Playwright (including system deps for headless rendering)
|
||||
RUN npx playwright install --with-deps chromium
|
||||
|
||||
# Ensure EGL/GLES libraries are available for SwiftShader WebGL rendering
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends libegl1 libgles2 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY tsconfig.json ./
|
||||
COPY src/ src/
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 8002
|
||||
|
||||
CMD ["node", "dist/server.js"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue